Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Plugin from .bat
#5
Code:
cd C:\Users\wa2378\AppData\Local\Programs\GIMP 2\bin

set str=%~dp0
set str1=%str:\=\\%

start gimp-2.10.exe -idf --batch-interpreter python-fu-eval -b "import sys;sys.path.append('%str1%');import bilder_check_batch;bilder_check_batch.run('%str1%')" -b "pdb.gimp_quit(1)"

this is what did the job for me. 
path.append to find the module, double slashes in the directory name and the strings called with single quotes.

Thanks for your help!
Reply


Messages In This Thread
Python Plugin from .bat - by Eonwe - 02-01-2022, 01:51 PM
RE: Python Plugin from .bat - by Kevin - 02-01-2022, 03:56 PM
RE: Python Plugin from .bat - by Ofnuts - 02-01-2022, 04:04 PM
RE: Python Plugin from .bat - by Eonwe - 02-01-2022, 05:11 PM
RE: Python Plugin from .bat - by Eonwe - 02-03-2022, 02:58 PM

Forum Jump: