def get_dependency_path()

in python/src/datasketches_spark/common.py [0:0]


def get_dependency_path(filename: str) -> str:
    """
    Returns a list of absolute paths to the specified file,\n
    it is included in the package's /deps subdir.
    :param filename: Name of file to retrieve
    :return: Absolute paths to filename
    :exception FileNotFoundError: If a file is not found in the package
    """
    try:
        with as_file(files("datasketches_spark.deps") / filename) as file_path:
            return str(file_path)
    except FileNotFoundError:
        raise FileNotFoundError(f"File {filename} not found in datasketches_spark.deps")