Merge pull request #42 from ghtyrant/conf_load_order

Reverse config path lookup
This commit is contained in:
Matthew Scragg 2015-03-03 21:52:42 -06:00
bovenliggende 334a9be4d0 72ab066c10
commit a3e4f937b2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen

Bestand weergeven

@ -39,7 +39,7 @@ def save(conf):
def get_path(check_write=False):
"""Find config path
"""
for loc in "/etc/realms-wiki", os.path.expanduser("~"), os.curdir:
for loc in os.curdir, os.path.expanduser("~"), "/etc/realms-wiki":
if not loc:
continue
path = os.path.join(loc, "realms-wiki.json")