Better support for non ascii in path under Windows.
svn: r14411
This commit is contained in:
parent
0bc2a351ea
commit
877359d727
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user