pysap.base.plugins#

class PluginsMetaImportHook[source]#

Bases: object

A class that import a module like normal except for the plugins that monted on the pysap plugins module. The return value from the hack call is put into sys.modules.

find_module(name, path=None)[source]#

This method is called by Python if this class is on sys.path. ‘name’ is the fully-qualified name of the module to look for, and ‘path’ is either __path__ (for submodules and subpackages) or None (for a top-level module/package).

Note that this method will be called every time an import statement is detected (or __import__ is called), before Python’s built-in package/module-finding code kicks in.

load_module(name)[source]#

This method is called by Python if the class ‘find_module’ does not return None. ‘name’ is the fully-qualified name of the module/package that was requested.