09-19-2017, 08:06 AM
(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 Big Grin](https://www.gimp-forum.net/images/smilies/biggrin.png)