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