import json, os def load(): path = os.path.expanduser("~/config.json") if os.path.exists(path): return json.loads(open(path).read()) return json.loads(open("/etc/app/config.json").read())