def get_distinfo_file(self, path):
<EOL>if path.find(os.sep) >= <NUM_LIT:0>:<EOL><INDENT>distinfo_dirname, path = path.split(os.sep)[-<NUM_LIT:2>:]<EOL>if distinfo_dirname != self.path.split(os.sep)[-<NUM_LIT:1>]:<EOL><INDENT>raise DistlibException(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (path, self.name, self.version))<EOL><DEDENT><DEDENT>if path not in DIST_FILES:<EOL><INDENT>raise DistlibException('<STR_LIT>'<EOL>'<STR_LIT>' % (path, self.path))<EOL><DEDENT>return os.path.join(self.path, path)<EOL>
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