mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-05 04:41:39 +00:00
Fix BASE_PATH for frozen macOS app
This commit is contained in:
@@ -12,8 +12,12 @@ if op.exists(__file__):
|
|||||||
# inside qt/, so we just go back one level.
|
# inside qt/, so we just go back one level.
|
||||||
BASE_PATH = op.abspath(op.join(op.dirname(__file__), ".."))
|
BASE_PATH = op.abspath(op.join(op.dirname(__file__), ".."))
|
||||||
else:
|
else:
|
||||||
# We're under a freezed environment. Our base path is ''.
|
# Should be a frozen environment
|
||||||
BASE_PATH = ""
|
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")
|
HELP_PATH = op.join(BASE_PATH, "help")
|
||||||
|
|
||||||
if ISWINDOWS:
|
if ISWINDOWS:
|
||||||
|
|||||||
Reference in New Issue
Block a user