Skip to content

Commit

Permalink
Fix BASE_PATH for frozen macOS app
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenetar committed Mar 9, 2022
1 parent cbfa872 commit 9e4b41f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qt/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e4b41f

Please sign in to comment.