def activate(self, path=None, replace=False):
if path is None:<EOL><INDENT>path = sys.path<EOL><DEDENT>self.insert_on(path, replace=replace)<EOL>if path is sys.path:<EOL><INDENT>fixup_namespace_packages(self.location)<EOL>for pkg in self._get_metadata('<STR_LIT>'):<EOL><INDENT>if pkg in sys.modules:<EOL><INDENT>declare_namespace(pkg)<EOL><DEDENT><DEDENT><DEDENT>
Ensure distribution is importable on `path` (default=sys.path)