1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

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

This commit is contained in:
Athanasius 2019-09-23 15:46:56 +01:00
parent 5279f2122c
commit b119974eb5

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: