mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
app, libgimp, pdb, plug-ins: batch CLI options now interpreter aware.
The CLI options now know which procedures are batch procedures or not. First it means that it won't just randomly try any procedure name one may pass and will properly output an error if you pass a non-existing interpreter procedure. Secondly, there is no default interpreter anymore (unless only one interpreter exists). If you don't set an interpreter procedure with --batch-interpreter or if you pass a wrong one, it will output the list of available batch procedure, thus helping you understanding how to use the --batch option.
This commit is contained in:
parent
06ae6a81a2
commit
de1d71bb3f
17 changed files with 291 additions and 105 deletions
|
@ -42,7 +42,7 @@ class PythonEval (Gimp.PlugIn):
|
|||
return ['python-fu-eval']
|
||||
|
||||
def do_create_procedure(self, name):
|
||||
procedure = Gimp.BatchProcedure.new(self, name,
|
||||
procedure = Gimp.BatchProcedure.new(self, name, "Python 3",
|
||||
Gimp.PDBProcType.PLUGIN,
|
||||
code_eval, None)
|
||||
procedure.set_documentation ("Evaluate Python code",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue