auth/config.py

5 lines
191 B
Python
Raw 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))