'Returns a path located under the ``.dist-info`` directory. Returns a
string representing the path.
:parameter path: a ``\'/\'``-separated path relative to the
``.dist-info`` directory or an absolute path;
If *path* is an absolute path and doesn\'t start
with the ``.dist-info`` directory path,
a :class:`DistlibException` is raised
:type path: str
:rtype: str'

def get_distinfo_file(self, path):

    if (path.find(os.sep) >= 0):
        (distinfo_dirname, path) = path.split(os.sep)[(-2):]
        if (distinfo_dirname != self.path.split(os.sep)[(-1)]):
            raise DistlibException((u'dist-info    file    %r    does    not    belong    to    the    %r    %s    distribution' % (path, self.name, self.version)))
    if (path not in DIST_FILES):
        raise DistlibException((u'invalid    path    for    a    dist-info    file:    %r    at    %r' % (path, self.path)))
    return os.path.join(self.path, path)
