mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-07-21 14:28:55 -04:00
Updated default config dir paths
This commit is contained in:
parent
4fa3dbbcd5
commit
4757550626
1 changed files with 5 additions and 3 deletions
|
@ -26,10 +26,12 @@ class NomadNetworkApp:
|
||||||
_shared_instance = None
|
_shared_instance = None
|
||||||
|
|
||||||
userdir = os.path.expanduser("~")
|
userdir = os.path.expanduser("~")
|
||||||
if os.path.isdir(userdir+"/.nomadnetwork") and os.path.isfile(userdir+"/.nomadnetwork/config"):
|
if os.path.isdir("/etc/nomadnetwork") and os.path.isfile("/etc/nomadnetwork/config"):
|
||||||
configdir = userdir+"/.nomadnetwork"
|
configdir = "/etc/nomadnetwork"
|
||||||
else:
|
elif os.path.isdir(userdir+"/.config/nomadnetwork") and os.path.isfile(userdir+"/.config/nomadnetwork/config"):
|
||||||
configdir = userdir+"/.config/nomadnetwork"
|
configdir = userdir+"/.config/nomadnetwork"
|
||||||
|
else:
|
||||||
|
configdir = userdir+"/.nomadnetwork"
|
||||||
|
|
||||||
START_ANNOUNCE_DELAY = 3
|
START_ANNOUNCE_DELAY = 3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue