Hi @lassoan, @jcfr !
We want to run a cli with specific dependencies not compatible with slicerPython, is it possible to specify the python path when we use the slicer.cli.run ?
Right now it will run with python-real. Or what would be the best way to connect a subprocess run to the cli observer mechanism?
Thank you very much !
Slicer will always run the Slicer CLI module script in the Slicer Python environment. However, in that Slicer CLI module script you can run any other software (e.g., another Python script, in any environment, using any interpreter, using standard
subprocess functions). You need to pass all relevant parameters to that other process and wait for the execution to complete before your script returns.