Module imputil :: Class ImportManager
[hide private]
[frames] | no frames]

Class ImportManager

Manage the import process.

Instance Methods [hide private]
 
install(self, namespace={'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'Asse...)
Install this ImportManager into the specified namespace.
 
uninstall(self)
Restore the previous import mechanism.
 
add_suffix(self, suffix, importFunc)
 
__init__(self, fs_imp=None)
 
_import_hook(self, fqname, globals=None, locals=None, fromlist=None)
Python calls this hook to locate and import a module.
 
_determine_import_context(self, globals)
Returns the context in which a module should be imported.
 
_import_top_module(self, name)
 
_reload_hook(self, module)
Python calls this hook to reload a module.
Class Variables [hide private]
  clsFilesystemImporter = None
Method Details [hide private]

_determine_import_context(self, globals)

 

Returns the context in which a module should be imported.

The context could be a loaded (package) module and the imported module will be looked for within that package. The context could also be None, meaning there is no context -- the module should be looked for as a "top-level" module.