mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
support pyinstaller
This commit is contained in:
parent
c7d9cbb11f
commit
403261a293
|
@ -24,6 +24,9 @@ MACOS = platform.system() == "Darwin"
|
|||
class EnvParams(object):
|
||||
def __init__(self):
|
||||
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":
|
||||
self.cfg = os.path.normpath(os.environ["APPDATA"] + "/copyparty")
|
||||
elif sys.platform == "darwin":
|
||||
|
|
Loading…
Reference in a new issue