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 91 of file Configuration.py.
92 """Helper function to get a configurable with the given name regardless 94 If defaultType can be a class derived from configurable or a string. If not 95 specified, the tool name is used as type.""" 96 if name
in allConfigurables:
97 return allConfigurables[name]
100 if defaultType
is None:
103 if type(defaultType)
is str:
105 if defaultType
in globals():
107 defaultType = globals()[defaultType]
111 defaultType = getattr(Configurables, defaultType)
112 return defaultType(name)
def getConfigurable(name, defaultType=None)