auth/config.py

6 lines
192 B
Python
Raw Permalink Normal View History

2023-12-25 00:27:23 +11:00
import os
import json
file=os.environ.get('AUTH_CONFIG_FILE')
if not file: raise Exception('AUTH_CONFIG_FILE not set. (It should point to a json file.) Exiting.')
config=json.load(open(file))