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