@@ -47,3 +47,9 @@ class Config(object):
|
||||
if config_var not in Config._CONFIG:
|
||||
raise Exception(f"Please set the {config_var} variable in the config file {Config._CONFIG_FILE}")
|
||||
return Config._CONFIG[config_var]
|
||||
|
||||
@staticmethod
|
||||
def set_config_var(name, value):
|
||||
assert Config._CONFIG
|
||||
Config._CONFIG[name] = value
|
||||
return Config
|
||||
|
Reference in New Issue
Block a user