Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i launch a gimp command line from a python script ?
#3
Hi Ofnuts,
Thank you for you feedback,

I take into account your remarks, here is the code genereating the error:

gimpPipe = subprocess.Popen( ["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 batch;batch.run('./images')", '-b', "pdb.gimp_quit(1)"], shell=False )
gimpPipe.wait()

To better understand, i simplify the command :

gimpPipe = subprocess.Popen( ["C:/Program Files/GIMP 2/bin/gimp-console-2.8.exe", '-idf', '--batch-interpreter', 'python-fu-eval','-b', "import sys;sys.path=['.']+sys.path;", '-b', "pdb.gimp_quit(1)"], shell=False )

and there is no error
So, the error is coming from the adjunction of:
-b', "import batch;",

maybe a question of path
Reply


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

Forum Jump: