2 from libCatKernel
import *
6 path=os.path.join(os.environ.get(
"CATPATH"), obj.dllName(),
"python", type)
8 filename=os.path.join(path,obj.type()+
".py")
10 filename=os.path.join(path,obj.name()+
".py")
14 self.
modules = [
None,
"" , filename , path ,
None]
18 if os.path.isfile(self.
modules[2]) :
19 file = open(self.
modules[2],
"rt")
24 self.
cat.debug(
"file "+ self.
modules[2] +
" does not exits. No plot associated to this processus.",
"wrapper.py")
34 code = compile(source,
"wrap" ,
"exec")
55 """Emulates a module with a dynamically compiled __dict__""" 61 return self.
dict[name]
def __init__(self, cat, obj, type)
def __getattr__(self, name)
def LoadFromSource(self, source)