from dotmap import DotMap
from ruamel.yaml import YAML

CONFIG_FILE = "config.yml"


def load_config(section):
    yaml = YAML(typ="safe")
    with open(CONFIG_FILE) as f:
        return DotMap(yaml.load(f), _dynamic=False).get(section)

from dotmap import DotMap
from ruamel.yaml import YAML

CONFIG_FILE = "config.yml"


def load_config(section):
    yaml = YAML(typ="safe")
    with open(CONFIG_FILE) as f:
        return DotMap(yaml.load(f), _dynamic=False).get(section)
