'Use pkg_resources to find the path to the required resource.'

def Filter(self, filename_spec):

    package = self.default_package
    filename = filename_spec
    if ('@' in filename_spec):
        (filename, package) = filename_spec.split('@', 1)
    if (not getattr(sys, 'frozen', None)):
        target = self._GetPkgResources(filename, package)
        if (target and os.access(target, os.R_OK)):
            return target
    target = os.path.join(sys.prefix, filename)
    if (target and os.access(target, os.R_OK)):
        return target
    raise FilterError(('Unable    to    find    resource    %s    while    interpolating:    ' % filename_spec))
