Better support for non ascii in path under Windows.

svn: r14411
This commit is contained in:
Peter Landgren 2010-02-18 14:54:19 +00:00
parent 0bc2a351ea
commit 877359d727

View File

@ -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: