mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Updated configuration path defaults
This commit is contained in:
parent
e51b0077c7
commit
76fb73f46c
@ -178,10 +178,12 @@ class Reticulum:
|
|||||||
if configdir != None:
|
if configdir != None:
|
||||||
Reticulum.configdir = configdir
|
Reticulum.configdir = configdir
|
||||||
else:
|
else:
|
||||||
if os.path.isdir(Reticulum.userdir+"/.reticulum") and os.path.isfile(Reticulum.userdir+"/.reticulum/config"):
|
if os.path.isdir(Reticulum.userdir+"/etc/reticulum") and os.path.isfile(Reticulum.userdir+"/etc/reticulum/config"):
|
||||||
Reticulum.configdir = Reticulum.userdir+"/.reticulum"
|
Reticulum.configdir = Reticulum.userdir+"/etc/reticulum"
|
||||||
else:
|
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:
|
||||||
|
Reticulum.configdir = Reticulum.userdir+"/.reticulum"
|
||||||
|
|
||||||
if logdest == RNS.LOG_FILE:
|
if logdest == RNS.LOG_FILE:
|
||||||
RNS.logdest = RNS.LOG_FILE
|
RNS.logdest = RNS.LOG_FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user