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