Data Integrator (Python API)
Public Member Functions | List of all members
common.ImportHook.CLoader Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ get_file_name()

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.

◆ load_module()

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.

The documentation for this class was generated from the following file: