06-19-2017, 01:07 PM
I have a simple question: When i run a python script via gimp, how can i close the command line window saying "press any key to close"?
I'm calling my script like this:
"C:\Program Files\GIMP 2\bin\gimp-2.8.exe" -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import PDF;PDF.process('%1','%2');" -b "pdb.gimp_quit(1)"
When i run the command an extra cmd window opens, which belongs to the gimp-2.8.exe process. Now how can i close it automatically? I would have thought pdb.gimp_quit(1) would actually do exactly that but it doesn't! I have also tried gimp.quit() within my python script, but it's not working.
Can anyone explain to me what is happening and if there is any way to finally close this stupid command line window?
Thanks...
I'm calling my script like this:
"C:\Program Files\GIMP 2\bin\gimp-2.8.exe" -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import PDF;PDF.process('%1','%2');" -b "pdb.gimp_quit(1)"
When i run the command an extra cmd window opens, which belongs to the gimp-2.8.exe process. Now how can i close it automatically? I would have thought pdb.gimp_quit(1) would actually do exactly that but it doesn't! I have also tried gimp.quit() within my python script, but it's not working.
Can anyone explain to me what is happening and if there is any way to finally close this stupid command line window?
Thanks...