from pathlib import Path
from typing import List
from typing import Dict
import yaml


def load_path(file_path: Path) -> List[Dict[str, str]]:
    """
    load file paths from a user-friendly yaml file

    Args:
        file_path (Path): path to the yaml file

    Returns:
        Dict[str, str]: usually name as key and path as value
    """
    base_path = Path(__file__).parent
    path = (base_path / file_path).resolve()

    with open(path, "r") as file:
        data: List[Dict[str, str]] = yaml.safe_load(file)

    return data