From 5972a3a16f761613a0523ee5f0da640a3c08c1d0 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 30c08549b..ccc81d60d 100644 --- a/gramps/gen/plug/_pluginreg.py +++ b/gramps/gen/plug/_pluginreg.py @@ -1122,7 +1122,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') % \