| 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] | |
| 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] | |