From 9e4b41feb54b9fa68b5c7241501230ea4cf73fd9 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Wed, 9 Mar 2022 06:41:59 -0600 Subject: [PATCH] Fix BASE_PATH for frozen macOS app --- qt/platform.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qt/platform.py b/qt/platform.py index 6953c95c..81e23ad8 100644 --- a/qt/platform.py +++ b/qt/platform.py @@ -12,8 +12,12 @@ # inside qt/, so we just go back one level. BASE_PATH = op.abspath(op.join(op.dirname(__file__), "..")) else: - # We're under a freezed environment. Our base path is ''. - BASE_PATH = "" + # Should be a frozen environment + if ISOSX: + BASE_PATH = op.abspath(op.join(op.dirname(__file__), '..', '..', 'Resources')) + else: + # For others our base path is ''. + BASE_PATH = "" HELP_PATH = op.join(BASE_PATH, "help") if ISWINDOWS: