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 116 of file Configuration.py.
117 """Helper function to get a configurable with the given name regardless
119 If defaultType can be a class derived from configurable or a string. If not
120 specified, the tool name is used as type."""
121 if name
in allConfigurables:
122 return allConfigurables[name]
125 if defaultType
is None:
128 if type(defaultType)
is str:
130 if defaultType
in globals():
132 defaultType = globals()[defaultType]
137 defaultType = getattr(Configurables, defaultType)
138 return defaultType(name)