import yaml
from datetime import datetime


def get_config(path="configs/config.yaml"):
    """Load configuration file
    
    Parameters
    ----------
    path : str, optional
        config.yaml path, by default 'configs/config.yaml'
    
    Returns
    -------
    dict
        variables from config.yaml
    """

    config = yaml.load(open(path), Loader=yaml.Loader)

    current_time_string = datetime.strftime(datetime.now(), "%Y-%m-%d-%H-%M-%S")

    config.update(dict(current_millis=current_time_string))

    return config