import yaml


def load_config_from_yaml(filename='fsm.yaml'):
    """
    Returns the current fsm configuration dictionary, loaded from file.

    :return: a dict.
    """
    yaml_file = open(filename, 'r')
    yaml_dict = yaml.safe_load(yaml_file.read())
    return yaml_dict