Slicer --no-main-window --python-script in windows command prompt not working

(Allison Clement) #1

I am trying to submit a python code to slicer python interactor via the windows command line. I can run my slicer using --python-script mypath. When I add --no-main-window before the --python-script mypath, the code does not run.

Thanks!
AC

0 Likes

(Csaba Pinter) #2

Maybe it helps if you look at an example for a script that does run without main window:

0 Likes

(Allison Clement) #4

My .py file runs when using --python-script, without --no-main-window prior.

0 Likes

(Andras Lasso) #5

Is any error displayed? Is any error logged in the application log? Which Slicer version do you use?

0 Likes

(Allison Clement) #6

Currently using Slicer 4.8.1 , there is no error it seems to be running in the background when I look at the task manager however the that I request to save in the python code are not being saved.

0 Likes

(Andras Lasso) #7

Let us know if the problem persists with latest stable version (4.10.1).

0 Likes