From 77adb230c556648f8b8d4a684908edbee2021cb7 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 15 Apr 2013 09:40:47 +0000 Subject: [PATCH] 6635: retry of bug 6443, exec missing globals svn: r21997 --- gramps/plugins/tool/removeunused.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/tool/removeunused.py b/gramps/plugins/tool/removeunused.py index 08db1f382..e57af8455 100644 --- a/gramps/plugins/tool/removeunused.py +++ b/gramps/plugins/tool/removeunused.py @@ -346,7 +346,7 @@ class RemoveUnused(tool.Tool, ManagedWindow, UpdateCallback): editor_str = 'from gramps.gui.editors import %s as editor' % ( self.tables[the_type]['editor'] ) - exec(editor_str) + exec(editor_str, globals()) editor(self.dbstate, self.uistate, [], obj) except WindowActiveError: pass