import yaml


def load_config(path=None):
    """ Loads configuration file from disk
    """
    if path is None:
        path = r'config.yaml'

    try:
        with open(path) as file:
            config = yaml.load(file, Loader=yaml.FullLoader)
        return config
    except Exception as e:
        print(e)