Calling Python Script for Script Runner (COSMOS 4.5.2) #1645
charlie-norgaard
started this conversation in
General
Replies: 2 comments 1 reply
-
For now, COSMOS only supports Ruby as a first class language. You can use the Python API to call COSMOS API methods from Python but note that will not work within Script Runner. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could call Python from a Ruby script, using system() or backticks, or Popen3, or ChildProcess (Ruby has lots of ways to make system calls). The script-runner container does not currently contain the python binaries. You would need to rebuild that container to contain python to be able to run it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was reading through some previous posts about this and there doesn't seem to be any definitive answers on whether or not you can call other scripts in COSMOS.
In short, I want to call a Python script for generating HMACs, but it isn't very clear how I would do this. Could I use load_utility and just give the absolute path for my python script, or does this only work for .rb files?
If anyone has any experience with this or any other suggestions please let me know!
Beta Was this translation helpful? Give feedback.
All reactions