Data Integrator (Python API)
|
Import hook module loader. More...
Public Member Functions | |
def | __init__ (s, path, moduleName, suffix) |
Ctor. More... | |
def | get_file_name (s) |
Get the full path file name of the module to load as it exists on the hard drive. More... | |
def | load_module (s, fullName) |
Import a module. More... | |
Import hook module loader.
This is a simple class for storing import related information such as Python source file location, but it is also responsible for properly executing the import itself.
def common.ImportHook.CLoader.__init__ | ( | s, | |
path, | |||
moduleName, | |||
suffix | |||
) |
Ctor.
@param path Fully qualified directory name of the module to be loaded. @param moduleName Dotless and extensionless module name as it appears in an @c from @c package @c import @c module statement. @param suffix Three-tuple as given by @c imp.get_suffixes(). Provides information on how to read this file.
def common.ImportHook.CLoader.get_file_name | ( | s | ) |
Get the full path file name of the module to load as it exists on the hard drive.
def common.ImportHook.CLoader.load_module | ( | s, | |
fullName | |||
) |
Import a module.
Load a module, if it has not yet been loaded. This is indicated by its presence in @c sys.modules. Create a new module, set its variables, and execute its code. @param fullName (Dotted) name of the module.