7258: Avoid dumb encoding error when compiling gpr files
This commit is contained in:
parent
dc292037e4
commit
5972a3a16f
@ -1122,7 +1122,7 @@ class PluginRegister(object):
|
|||||||
local_gettext = glocale.translation.gettext
|
local_gettext = glocale.translation.gettext
|
||||||
try:
|
try:
|
||||||
#execfile(full_filename,
|
#execfile(full_filename,
|
||||||
exec (compile(stream, full_filename, 'exec'),
|
exec (compile(stream, filename, 'exec'),
|
||||||
make_environment(_=local_gettext), {})
|
make_environment(_=local_gettext), {})
|
||||||
except ValueError as msg:
|
except ValueError as msg:
|
||||||
print(_('ERROR: Failed reading plugin registration %(filename)s') % \
|
print(_('ERROR: Failed reading plugin registration %(filename)s') % \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user