a helper class to allow easy retrieval of automatically generated
configurables (stolen from PyRoot)
Definition at line 20 of file CfgMgr.py.
◆ __init__()
def python.CfgMgr.ModuleFacade.__init__ |
( |
|
self, |
|
|
|
module |
|
) |
| |
Definition at line 24 of file CfgMgr.py.
25 types.ModuleType.__init__( self, __name__ )
27 self.__dict__[
'__doc__' ] = module.__doc__
28 self.__dict__[
'__name__' ] = module.__name__
30 from AthenaCommon.ConfigurableDb
import getConfigurable
31 self.__dict__[
'getConfigurable' ] = getConfigurable
◆ __getattr__()
def python.CfgMgr.ModuleFacade.__getattr__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
Definition at line 33 of file CfgMgr.py.
33 def __getattr__(self, k):
34 if not k.startswith(
'__' ):
35 return self.getConfigurable( k, assumeCxxClass =
False )
37 return super( types.ModuleType, self ).__getattr__( self, k )
39 sys.modules[ __name__ ] = ModuleFacade( sys.modules[ __name__ ] )
The documentation for this class was generated from the following file: