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