from pathlib import Path


def paths_to_relative(root, paths):
    """
    Converts a list of absolute paths to paths relative to the the
    root project path.
    """
    return list(map(lambda x: str(Path(x).relative_to(root)), paths))