hutch_python.utils.find_class¶
- hutch_python.utils.find_class(class_path, check_defaults=True)¶
- Find a - typeobject given a- str.- Given a string class name, either return the matching built-in type or import the correct module and return the type. - Parameters
- class_path ( - str) – Built-in type name or import path e.g.- ophyd.device.Device
- check_defaults ( - bool) – If- True, try checking inside each module in- CLASS_SEARCH_PATH
 
- Returns
- cls – The class we found 
- Return type
- type