biasaware / utils /read_config.py
sudipta002's picture
Add backend scripts
b20457e
raw
history blame
283 Bytes
import json
def read_config_file():
with open("utils/config.json", "r") as jsonfile:
data = json.load(jsonfile)
return data
def get_args(args):
try:
data = read_config_file()
except:
raise "Could not read config file."
return data[args]