Fix BASE_PATH for frozen macOS app

This commit is contained in:
Andrew Senetar 2022-03-09 06:41:59 -06:00
parent cbfa8720f1
commit 9e4b41feb5
No known key found for this signature in database
GPG Key ID: FEB896EB6CF6254B
1 changed files with 6 additions and 2 deletions

View File

@ -12,8 +12,12 @@ if op.exists(__file__):
# 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: