Subprocess call in Python interpreter results in memory corruption

Then, as soon as we are done implementing a more general solution, you would be able to do:

from  subprocess import check_output
check_output(
    ["/path/to/program", "arg1", ...],
    env=slicer.util.startupEnvironment())

similarly, it will be possible to start CLI excluding the slicer environment. (edit: This last part is NOT yet implemented.)

2 Likes