Hey,
I am trying to develop a script that is independent of slicer’s main execution process. I want to launch this python script using the built-in python interpreter (this way the user does not need to have an independent python installation), perform a task, then return the data back to the slicer python extension that executed it. From the Script Repository and Launcher Wikis I saw there is the option to start a script this way:
Slicer.exe --python-script “[path to script]\myScript.py --script_argument” --testing --no-splash --no-main-window
I can pass some data to myScript.py via setting up command argument input like you do in the terminal but what would be the best way to capture the return data once this script has completed execution?
Essentially I just want to use the supplied python interpreter Slicer comes with to run python script then return the data back to the extension for further processing.
Thanks!