mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
exe: l10n.py removal of un-needed .decode() calls
This commit is contained in:
parent
dded0196ea
commit
0dbe901158
4
l10n.py
4
l10n.py
@ -150,9 +150,9 @@ class Translations(object):
|
|||||||
def respath(self):
|
def respath(self):
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
if platform=='darwin':
|
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:
|
else:
|
||||||
return join(dirname(sys.executable.decode(sys.getfilesystemencoding())), LOCALISATION_DIR)
|
return join(dirname(sys.executable), LOCALISATION_DIR)
|
||||||
elif __file__:
|
elif __file__:
|
||||||
return join(dirname(__file__), LOCALISATION_DIR)
|
return join(dirname(__file__), LOCALISATION_DIR)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user