09-22-2020, 04:53 PM
Hallo,
I registered the script as follows:
I start gimp from cygwin by
The script is not executed, but I see the error message:
However, the script appears in the "Filters"-menu, and when I click on it, it works fine.
When I call gimp from windows, it shows the same behavior, but I do not see the error message.
Daniel
I registered the script as follows:
Code:
register(
"WaveletImporter",
"WaveletImporter",
"WaveletImporter",
"Dr. Daniel Kirsten",
"Dr. Daniel Kirsten",
"September 2020",
"WaveletImporter",
"",
[],
[],
wavelet_importer,
menu="<Image>/Filters/"
)
I start gimp from cygwin by
Code:
/cygdrive/c/Program\ Files/GIMP\ 2/bin/gimp-2.10.exe --batch-interpreter=python-fu-eval -b 'WaveletImporter'
The script is not executed, but I see the error message:
Code:
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 827, in _run
return apply(func, params[1:])
File "C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\python-eval\python-eval.py", line 25, in code_eval
exec code in globals()
File "<string>", line 1, in <module>
NameError: name 'WaveletImporter' is not defined
However, the script appears in the "Filters"-menu, and when I click on it, it works fine.
When I call gimp from windows, it shows the same behavior, but I do not see the error message.
Daniel