(self, namespace=vars(__builtin__))
Install this ImportManager into the specified namespace.
Install this ImportManager into the specified namespace.
Install this ImportManager into the specified namespace .
def install(self, namespace=vars(__builtin__)):
        "Install this ImportManager into the specified namespace."

        if isinstance(namespace, _ModuleType):
            namespace = vars(namespace)

        # Note: we have no notion of "chaining"

        # Record the previous import hook, then install our own.
        self.previous_importer = namespace['__import__']
        self.namespace = namespace
        namespace['__import__'] = self._import_hook
def install ( self , namespace = vars ( __builtin__ ) ) : if isinstance ( namespace , _ModuleType ) : namespace = vars ( namespace ) # Note: we have no notion of "chaining" # Record the previous import hook, then install our own. self . previous_importer = namespace [ '__import__' ] self . namespace = namespace namespace [ '__import__' ] = self . _import_hook