Fixed config dir path

pull/154/head
Mark Qvist 2022-09-30 20:41:11 +02:00
rodzic 80ffa5ebc3
commit b085127d6e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -178,8 +178,8 @@ class Reticulum:
if configdir != None:
Reticulum.configdir = configdir
else:
if os.path.isdir(Reticulum.userdir+"/etc/reticulum") and os.path.isfile(Reticulum.userdir+"/etc/reticulum/config"):
Reticulum.configdir = Reticulum.userdir+"/etc/reticulum"
if os.path.isdir("/etc/reticulum") and os.path.isfile("/etc/reticulum/config"):
Reticulum.configdir = "/etc/reticulum"
elif os.path.isdir(Reticulum.userdir+"/.config/reticulum") and os.path.isfile(Reticulum.userdir+"/.config/reticulum/config"):
Reticulum.configdir = Reticulum.userdir+"/.config/reticulum"
else: