feat: create config file and config manager

This commit is contained in:
Giovani Rodriguez
2021-06-02 22:51:25 -04:00
parent 0f3d842935
commit 58afbf4446
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)