Files
tetri5/util/ConfigurationManager.py
2021-06-08 12:33:58 -04:00

13 lines
306 B
Python

import yaml
CONFIG_FILE_LOCATION = "config.yaml"
# TODO add getter for configuration?
class ConfigurationManager:
configuration = []
@classmethod
def load(cls) -> None:
with open(CONFIG_FILE_LOCATION, "r") as yaml_file:
cls.configuration = yaml.safe_load(yaml_file)