6 lines
192 B
Python
6 lines
192 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))
|