A class to handle pluggable module loading.
Methods
|
|
__init__
addEntryPoint
getModuleList
|
|
__init__
|
__init__ (
self,
moduleName,
modulePath,
parentModulePrefix,
)
Create a PluginLoader.
Parameters
- moduleName
- The imported module, from which we get name, path,
etc. to find the sub-modules.
- modulePath
- The path to the module, and therefore the
parent directory of the plugins.
- parentModulePrefix
- The prefix of parent names to be added
to moduleName. For example
happydoclib .
Exceptions
|
|
PluginException( buffer.getvalue(), _import_name )
|
|
|
addEntryPoint
|
addEntryPoint ( self, infoDict )
Add an entry point into a module to our lookup tables.
This method must be implemented by the subclass.
Exceptions
|
|
'Not implemented for %s' % self.__class__.__name__
|
|
|
getModuleList
|
getModuleList ( self )
Return a list of module names to be used as plugins.
|
|