Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i launch a gimp command line from a python script ?
#5
(09-18-2017, 08:19 PM)Ofnuts Wrote: Do you have a valid batch.py file in your current directory? The basic idea is that "import sys;sys.path=['.']+sys.path;" adds a directory to the Python path (here it's '.', so that's the current directory when the command is issued, but it could be '/path/to/the/script/directory') while 'import batch' imports batch.py from that directory, and 'batch.run()' calls the run() function in it.

PS; Please take the habit to copy the error message when you report an error... I can't read it over your shoulder.

@ofnuts, Thank so much, it works:
I am now able to apply a  gimp filter to all files in a directory

Big Grin
Reply


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

Forum Jump: