Helper function to get a configurable with the given name regardless
for the type.
If defaultType can be a class derived from configurable or a string. If not
specified, the tool name is used as type.
Definition at line 89 of file Configuration.py.
90 """Helper function to get a configurable with the given name regardless 92 If defaultType can be a class derived from configurable or a string. If not 93 specified, the tool name is used as type.""" 94 if name
in allConfigurables:
95 return allConfigurables[name]
98 if defaultType
is None:
101 if type(defaultType)
is str:
103 if defaultType
in globals():
105 defaultType = globals()[defaultType]
109 defaultType = getattr(Configurables, defaultType)
110 return defaultType(name)
def getConfigurable(name, defaultType=None)