Load config from JSON file.
(path: str = None)
| 22 | |
| 23 | |
| 24 | def load_config(path: str = None): |
| 25 | """Load config from JSON file.""" |
| 26 | if path and os.path.exists(path): |
| 27 | with open(path) as f: |
| 28 | CONFIG.update(json.load(f)) |
| 29 | return CONFIG |
| 30 | |
| 31 | |
| 32 | def find_config(): |