From 877359d72718f9cbf1ebc689f469413ce67c0035 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 18 Feb 2010 14:54:19 +0000 Subject: [PATCH] Better support for non ascii in path under Windows. svn: r14411 --- src/gen/plug/_pluginreg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gen/plug/_pluginreg.py b/src/gen/plug/_pluginreg.py index 654173554..505199231 100644 --- a/src/gen/plug/_pluginreg.py +++ b/src/gen/plug/_pluginreg.py @@ -940,8 +940,11 @@ class PluginRegister(object): lenpd = len(self.__plugindata) full_filename = os.path.join(dir, filename) local_gettext = get_addon_translator(full_filename).gettext + if type(full_filename) == str: + full_filename = unicode(full_filename, sys.getfilesystemencoding()) try: - execfile(full_filename, + #execfile(full_filename, + execfile(full_filename.encode(sys.getfilesystemencoding()), make_environment(_=local_gettext), {}) except ValueError, msg: