import pkg_resources


def resource_filename(resources_name) -> str:
    """
    Get the absolute path of a resource file of the package.
    """

    return pkg_resources.resource_filename(__name__, resources_name)