|
Module ihooks ::
Class BasicModuleLoader
|
|
Class BasicModuleLoader
_Verbose --+
|
BasicModuleLoader
- Known Subclasses:
-
ModuleLoader
Basic module loader.
This provides the same functionality as built-in import. It doesn't
deal with checking sys.modules -- all it provides is find_module() and a
load_module(), as well as find_module_in_dir() which searches just one
directory, and can be overridden by a derived class to change the module
search algorithm when the basic dependency on sys.path is unchanged.
The interface is a little more convenient than imp's:
find_module(name, [path]) returns None or 'stuff', and load_module(name,
stuff) loads the module.
| Method Summary |
| |
default_path(self)
|
| |
find_builtin_module(self,
name)
|
| |
find_module(self,
name,
path)
|
| |
find_module_in_dir(self,
name,
dir)
|
| |
load_module(self,
name,
stuff)
|
find_builtin_module(self,
name)
-
|
find_module(self,
name,
path=None)
-
|
find_module_in_dir(self,
name,
dir)
-
|
load_module(self,
name,
stuff)
-
|