7 __author__ =
"Sebastien Binet <binet@cern.ch>"
8 __version__ =
"$Revision: 1.3 $"
10 A module facade to the repository of automatically generated configurables.
11 Once imported it allows queries like so:
12 >>> from AthenaCommon import CfgMgr
13 >>> topSequence += CfgMgr.MyAlgorithm( 'MyAlg', OutputLevel = INFO )
14 >>> topSequence += CfgMgr.MyCppNs__MyAlgorithm( 'UrAlg' )
21 """a helper class to allow easy retrieval of automatically generated
22 configurables (stolen from PyRoot)
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
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__ ] )