'NOTE: This API may change in the future.
Return the absolute path to a resource file with the given relative
path.
:param relative_path: The path, relative to .dist-info, of the resource
of interest.
:return: The absolute path where the resource is to be found.'

def get_resource_path(self, relative_path):

    r = self.get_distinfo_resource(u'RESOURCES')
    with contextlib.closing(r.as_stream()) as stream:
        with CSVReader(stream=stream) as resources_reader:
            for (relative, destination) in resources_reader:
                if (relative == relative_path):
                    return destination
    raise KeyError((u'no    resource    file    with    relative    path    %r    is    installed' % relative_path))
