def __init__(self, path=None, include_egg=False):
if path is None:<EOL><INDENT>path = sys.path<EOL><DEDENT>self.path = path<EOL>self._include_dist = True<EOL>self._include_egg = include_egg<EOL>self._cache = _Cache()<EOL>self._cache_egg = _Cache()<EOL>self._cache_enabled = True<EOL>self._scheme = get_scheme('<STR_LIT:default>')<EOL>
Create an instance from a path, optionally including legacy (distutils/
setuptools/distribute) distributions.
:param path: The path to use, as a list of directories. If not specified,
             sys.path is used.
:param include_egg: If True, this instance will look for and return legacy
                    distributions as well as those based on PEP 376.