Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i launch a gimp command line from a python script ?
#4
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.
Reply


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

Forum Jump: