exe: l10n.py removal of un-needed .decode() calls

This commit is contained in:
Athanasius committed 2020-06-21 16:23:02 +01:00
1 parent dded0196ea
commit 0dbe901158
1 file changed
+2 -2
+2 -2
View File
@@ -150,9 +150,9 @@ class Translations(object):
def respath(self):
if getattr(sys, 'frozen', False):
if platform=='darwin':
return normpath(join(dirname(sys.executable.decode(sys.getfilesystemencoding())), os.pardir, 'Resources'))
return normpath(join(dirname(sys.executable), os.pardir, 'Resources'))
else:
return join(dirname(sys.executable.decode(sys.getfilesystemencoding())), LOCALISATION_DIR)
return join(dirname(sys.executable), LOCALISATION_DIR)
elif __file__:
return join(dirname(__file__), LOCALISATION_DIR)
else: