Bug 761140: importing gimpui module causes plugin query failure

After commit f51acf3bfb the python console no longer
initialized gimpui, because it is no longer part of module
initialization.

If the plug-in is run noninteractively and it imports
gimpui explicitely it is now necessary to call gimp_ui_init ()
at the right time
This commit is contained in:
Massimo Valentini
2018-01-06 11:11:13 +01:00
committed by Michael Natterer
parent 5ea96afdf3
commit 7ccf5d2624

View File

@ -30,6 +30,7 @@ def do_console():
pygtk.require('2.0')
import sys, gobject, gtk, gimpenums, gimpshelf, gimpui, pyconsole
gimpui.gimp_ui_init ()
namespace = {'__builtins__': __builtins__,
'__name__': '__main__', '__doc__': None,