mirror of
https://github.com/9001/copyparty.git
synced 2026-11-22 23:42:34 +00:00
support pyinstaller
This commit is contained in:
1 parent
c7d9cbb11f
commit
403261a293
1 file changed
+3
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user