from pkg_resources import resource_filename


def get_package_file_path(from_package, relative_path):
    """Use source of a python package to locate and cache the address of a file."""

    return resource_filename(from_package, relative_path)