feat: create config file and config manager

This commit is contained in:
2021-06-02 22:51:25 -04:00
parent e5ea8988c8
commit 0f1cc442b6
5 changed files with 63 additions and 22 deletions

View 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)