Back to index

salome-paravis  6.5.0
Public Member Functions
paravisSM._ModuleLoader Class Reference

List of all members.

Public Member Functions

def find_module
def load_module

Detailed Description

Definition at line 2095 of file paravisSM.py.


Member Function Documentation

def paravisSM._ModuleLoader.find_module (   self,
  fullname,
  path = None 
)

Definition at line 2096 of file paravisSM.py.

02096 
02097     def find_module(self, fullname, path=None):
02098         if vtkPVPythonModule.HasModule(fullname):
02099             return self
02100         else:
            return None
def paravisSM._ModuleLoader.load_module (   self,
  fullname 
)

Definition at line 2101 of file paravisSM.py.

02101 
02102     def load_module(self, fullname):
02103         import imp
02104         moduleInfo = vtkPVPythonModule.GetModule(fullname)
02105         if not moduleInfo:
02106             raise ImportError
02107         module = sys.modules.setdefault(fullname, imp.new_module(fullname))
02108         module.__file__ = "<%s>" % moduleInfo.GetFullName()
02109         module.__loader__ = self
02110         if moduleInfo.GetIsPackage:
02111             module.__path__ = moduleInfo.GetFullName()
02112         code = compile(moduleInfo.GetSource(), module.__file__, 'exec')
02113         exec code in module.__dict__
02114         return module


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