From 72ab066c105eb464b0bcef0261029fc5170edb1e Mon Sep 17 00:00:00 2001 From: Fabian Schlager Date: Fri, 21 Nov 2014 19:27:34 +0100 Subject: [PATCH] Reverse config path lookup --- realms/config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realms/config/__init__.py b/realms/config/__init__.py index 40533b9..ebf6829 100644 --- a/realms/config/__init__.py +++ b/realms/config/__init__.py @@ -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")