12 lines
216 B
Python
12 lines
216 B
Python
import os
|
|
import json
|
|
|
|
|
|
HERE = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
|
def read_config(cfg_file=os.path.join(HERE, 'nao_defaults.json')):
|
|
with open(cfg_file) as f:
|
|
cfg = json.load(f)
|
|
return cfg
|