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 101 of file Configuration.py.
102 """Helper function to get a configurable with the given name regardless
104 If defaultType can be a class derived from configurable or a string. If not
105 specified, the tool name is used as type."""
106 if name
in allConfigurables:
107 return allConfigurables[name]
110 if defaultType
is None:
113 if type(defaultType)
is str:
115 if defaultType
in globals():
117 defaultType = globals()[defaultType]
121 defaultType = getattr(Configurables, defaultType)
122 return defaultType(name)