From 57c30dd98deded2692546647092c8f0b284c067c Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 7 Aug 2019 00:01:10 +0200 Subject: Fixing non-ASCII file paths for icons --- jfr_playoff/gui/icons.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jfr_playoff/gui/icons.py b/jfr_playoff/gui/icons.py index f700bb1..94d3d63 100644 --- a/jfr_playoff/gui/icons.py +++ b/jfr_playoff/gui/icons.py @@ -8,9 +8,11 @@ class GuiImage(object): @staticmethod def __get_base_path(): try: - return os.path.join(sys._MEIPASS, 'res') + return os.path.join(sys._MEIPASS, 'res').decode( + sys.getfilesystemencoding()) except: - return os.path.abspath(os.path.dirname(__file__)) + return os.path.abspath(os.path.dirname(__file__)).decode( + sys.getfilesystemencoding()) @staticmethod def get_path(imageType, code, fileType='gif'): -- cgit v1.2.3