import yaml


def load_local_paths(path):
    """
    Load local paths .yaml file.

    Parameters
    ==========
    path : str
        Path to .env file.

    Returns
    =======
    local_paths : dict
        Dictionary with environmental variables from .yaml file.
    """

    with open(path, 'r') as f:
        try:
            local_paths = yaml.safe_load(f)
        except yaml.YAMLError as err:
            print(err)
            return None

    return local_paths