File size: 283 Bytes
b20457e
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]