feat: create config file and config manager
This commit is contained in:
12
util/ConfigurationManager.py
Normal file
12
util/ConfigurationManager.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import yaml
|
||||
|
||||
CONFIG_FILE_LOCATION = "config.yaml"
|
||||
|
||||
class ConfigurationManager:
|
||||
|
||||
configuration = []
|
||||
|
||||
@classmethod
|
||||
def load(cls):
|
||||
with open(CONFIG_FILE_LOCATION, "r") as yaml_file:
|
||||
cls.configuration = yaml.safe_load(yaml_file)
|
||||
Reference in New Issue
Block a user