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