Home | Trees | Indices | Help |
|
---|
|
Tools for doing dynamic imports.
Since: 0.3
|
|||
ModuleFinder This is a special module finder object that executes a collection of callables when a specific module has been imported. |
|
|||
|
|||
|
|||
|
|
|||
post_load_hooks = {} A list of callables to be executed when the module is imported. |
|||
loaded_modules =
List of modules that have already been loaded. |
Imports: sys
|
Run all hooks for a module. Load an unactivated "lazy" module object. |
Splits a module name into its parent and child parts. >>> split_module('foo.bar.baz') 'foo.bar', 'baz' >>> split_module('foo') None, 'foo' |
Call 'hook' must accept one argument: the module object named by 'name', which must be a fully qualified (i.e. absolute) module name. The hook should not raise any exceptions, or it will prevent later hooks from running. If the module has already been imported normally, 'hook(module)' is called immediately, and the module object is returned from this function. If the module has not been imported, then the hook is called when the module is first imported. |
|
loaded_modulesList of modules that have already been loaded.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Sep 19 14:56:30 2009 | http://epydoc.sourceforge.net |