OpenC3 / cosmos

OpenC3 COSMOS
https://openc3.com
Other
111 stars 31 forks source link

How do I start a Python script from Ruby? #1697

Open tsjordan-eng opened 5 days ago

tsjordan-eng commented 5 days ago

I have used the runScript call in the telemetry panels to start a script, but I can't find a way to do this in the Script Runner. It would be helpful because we have existing scripts and suites written in Ruby, but we want to take advantage of using Python scripts for their libraries.

ryanmelt commented 5 days ago

Spawns a script in ScriptRunner

script_run("INST2/procedures/checks.py")

tsjordan-eng commented 4 days ago

Ah, that seems to work! I couldn't find it in the documentation, though I suspect it has the same arguments like passing environment variables and such. I'll check out the source code.