diff --git a/gramps/gen/plug/_pluginreg.py b/gramps/gen/plug/_pluginreg.py index f748ca8b5..39cf9d5b3 100644 --- a/gramps/gen/plug/_pluginreg.py +++ b/gramps/gen/plug/_pluginreg.py @@ -1102,7 +1102,7 @@ class PluginRegister(object): local_gettext = glocale.translation.gettext try: #execfile(full_filename, - exec (compile(stream, full_filename, 'exec'), + exec (compile(stream, filename, 'exec'), make_environment(_=local_gettext), {}) except ValueError as msg: print(_('ERROR: Failed reading plugin registration %(filename)s') % \