mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-02-23 00:19:58 -05:00
Place configuration in .config dir by default. Closes #12.
This commit is contained in:
parent
47d3581b5f
commit
07f6bb8367
@ -25,7 +25,11 @@ class NomadNetworkApp:
|
|||||||
time_format = "%Y-%m-%d %H:%M:%S"
|
time_format = "%Y-%m-%d %H:%M:%S"
|
||||||
_shared_instance = None
|
_shared_instance = None
|
||||||
|
|
||||||
configdir = os.path.expanduser("~")+"/.nomadnetwork"
|
userdir = os.path.expanduser("~")
|
||||||
|
if os.path.isdir(userdir+"/.nomadnetwork") and os.path.isfile(userdir+"/.nomadnetwork/config"):
|
||||||
|
configdir = userdir+"/.nomadnetwork"
|
||||||
|
else:
|
||||||
|
configdir = userdir+"/.config/nomadnetwork"
|
||||||
|
|
||||||
START_ANNOUNCE_DELAY = 3
|
START_ANNOUNCE_DELAY = 3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user