mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-05 13:50:14 +00:00
Fixed config dir path
This commit is contained in:
parent
80ffa5ebc3
commit
b085127d6e
@ -178,8 +178,8 @@ class Reticulum:
|
|||||||
if configdir != None:
|
if configdir != None:
|
||||||
Reticulum.configdir = configdir
|
Reticulum.configdir = configdir
|
||||||
else:
|
else:
|
||||||
if os.path.isdir(Reticulum.userdir+"/etc/reticulum") and os.path.isfile(Reticulum.userdir+"/etc/reticulum/config"):
|
if os.path.isdir("/etc/reticulum") and os.path.isfile("/etc/reticulum/config"):
|
||||||
Reticulum.configdir = Reticulum.userdir+"/etc/reticulum"
|
Reticulum.configdir = "/etc/reticulum"
|
||||||
elif os.path.isdir(Reticulum.userdir+"/.config/reticulum") and os.path.isfile(Reticulum.userdir+"/.config/reticulum/config"):
|
elif os.path.isdir(Reticulum.userdir+"/.config/reticulum") and os.path.isfile(Reticulum.userdir+"/.config/reticulum/config"):
|
||||||
Reticulum.configdir = Reticulum.userdir+"/.config/reticulum"
|
Reticulum.configdir = Reticulum.userdir+"/.config/reticulum"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user