import pathlib
import pkg_resources


def get_path(resource_name):
    """ Returns a path to a resource

        WARNING: existence of file is not guaranteed. Use resources.exists
        WARNING: resource files are supposed to be used as read-only!
    """
    resource_path = pathlib.Path( pkg_resources.resource_filename(__name__, resource_name) )
    return resource_path