summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-08-07 00:01:10 +0200
committeremkael <emkael@tlen.pl>2019-08-07 00:01:10 +0200
commit57c30dd98deded2692546647092c8f0b284c067c (patch)
tree759664076d201a78a23dd552339e08a3a7ca1cf6 /jfr_playoff/gui
parent941cad5ce8e2f066c1928e76af659ef15641a7b5 (diff)
Fixing non-ASCII file paths for icons
Diffstat (limited to 'jfr_playoff/gui')
-rw-r--r--jfr_playoff/gui/icons.py6
1 files 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'):