diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index a38084e10..34f72ab40 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -420,7 +420,7 @@ def run(): LOG.debug('environment: LANGUAGE is not defined') if argpars.need_gui(): - #A GUI is needed, set it up + LOG.debug("A GUI is needed, set it up") if "--qml" in sys.argv: from .guiQML.grampsqml import startqml startqml(error, argpars) diff --git a/gramps/gui/plug/__init__.py b/gramps/gui/plug/__init__.py index 10c5beb09..edba6878b 100644 --- a/gramps/gui/plug/__init__.py +++ b/gramps/gui/plug/__init__.py @@ -29,11 +29,14 @@ __date__ ="$Apr 20, 2010 3:13:24 PM$" from . import tool -from ._guioptions import make_gui_option, add_gui_options -from gramps.gen.plug import MenuOptions +try: + from ._guioptions import make_gui_option, add_gui_options + from ._dialogs import ReportPluginDialog, ToolPluginDialog + from . import _windows as PluginWindows +except TypeError: # No GUI + pass -from ._dialogs import ReportPluginDialog, ToolPluginDialog -from . import _windows as PluginWindows +from gramps.gen.plug import MenuOptions # This needs to go above Tool and MenuOption as it needs both class MenuToolOptions(MenuOptions, tool.ToolOptions):