Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i launch a gimp command line from a python script ?
#2
Better give some extract of your Python code that includes  the Popen call as well as the exact error. I would expect something like:
Code:
Popen(["/path/to/gimp.exe","-idf","--batch-interpreter","python-fu-eval","-b","import sys;sys.path=['.']+sys.path;import batch;batch.run('./images')","-b","pdb.gimp_quit(1)"])
  • If you are using "shell=true" in the hope of making your life easier, don't, it won't.
  • Note the use of double quotes in the strings, keeping the single quotes for the Python code inside the strings (in the difficult cases, you can also use "raw" strings: r'..' or '''...''')
  • Windows accepts "/" as file separators. The only place where it doesn't is the command prompt.
Reply


Messages In This Thread
RE: How can i launch a gimp command line from a python script ? - by Ofnuts - 09-18-2017, 02:52 PM

Forum Jump: