From 137e18c41a3f08b7afecb811c7f9d49042bd11db Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 7 Apr 2014 12:44:39 -0700 Subject: [PATCH] 7258: Avoid dumb encoding error when compiling gpr files --- gramps/gen/plug/_pluginreg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') % \