mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
support pyinstaller
This commit is contained in:
parent
c7d9cbb11f
commit
403261a293
|
@ -24,6 +24,9 @@ MACOS = platform.system() == "Darwin"
|
||||||
class EnvParams(object):
|
class EnvParams(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.mod = os.path.dirname(os.path.realpath(__file__))
|
self.mod = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
if self.mod.endswith("__init__"):
|
||||||
|
self.mod = os.path.dirname(self.mod)
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
self.cfg = os.path.normpath(os.environ["APPDATA"] + "/copyparty")
|
self.cfg = os.path.normpath(os.environ["APPDATA"] + "/copyparty")
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
|
|
Loading…
Reference in a new issue