ref: master
kaiowa/config.py
1 2 3 4 5 6 7 8 9 10 11 12 13
import json config = None _paths = ["./config.json", "/etc/kaiowa.json"] for path in _paths: try: with open(path) as f: config = json.loads(f.read()) except: pass assert config is not None