(06-19-2017, 01:39 PM)Kevin Wrote: And what happens if you redirect standard-out and standard-err to a file:
Code:
"C:\Program Files\GIMP 2\bin\gimp-console-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)" 1>/tmp/gimp_startup.txt 2>&1
I tried that and this is the content of gimp_startup.txt:
Code:
Error processing line 3 of C:\Program Files\GIMP 2\Python\lib\site-packages\pygtk.pth:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\Python\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
ImportError: No module named runtime
Remainder of file ignored
** (pythonw.exe:4768): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (pythonw.exe:4768): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (pythonw.exe:4768): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
(gimp-console-2.8.exe:5244): LibGimpBase-WARNING **: gimp-console-2.8.exe: gimp_wire_read(): error
batch command executed successfully
Error processing line 3 of C:\Program Files\GIMP 2\Python\lib\site-packages\pygtk.pth:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\Python\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
ImportError: No module named runtime
Remainder of file ignored
Error processing line 3 of C:\Program Files\GIMP 2\Python\lib\site-packages\pygtk.pth:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\Python\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
ImportError: No module named runtime
Remainder of file ignored
However: IT WORKS! I don't really understand why but now it is not even opening the other console window, just as it should be! Thank you!