Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GIMP python script from command line
#1
Hi, first time caller - so go easy on me. Smile

I'm running GIMP 2.10.18 on Win7, trying to run a script from the command line using:

Code:
cd %~dp0
"D:\GIMP2\bin\gimp-2.10.exe" -idfs --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import myscript;myscript.run('./images')" -b "pdb.gimp_quit(1)"

The error I get is simply:
Code:
batch command experienced an execution error
(Type any character to close this window)


I tried to make the errors verbose with 
Code:
sys.stderr = open('D:/temp/python-fu-output.txt','a')
sys.stdout=sys.stderr

...only to no avail.

I'm used to running and writing scripts for Photoshop so this is all new to me. Thanks for any help.
Reply


Messages In This Thread
GIMP python script from command line - by ghoul fool - 12-06-2020, 10:55 AM

Forum Jump: