6635: retry of bug 6443, exec missing globals

svn: r21997
This commit is contained in:
Benny Malengier 2013-04-15 09:40:47 +00:00
parent 9503faed70
commit 77adb230c5

View File

@ -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