doImport¶
- lsst.utils.doImport(importable: str) module | type¶
- Import a python object given an importable string and return it. - Parameters:
- importablestr
- String containing dot-separated path of a Python class, module, or member function. 
 
- importable
- Returns:
- typetype
- Type object. Either a module or class or a function. 
 
- type
- Raises:
- TypeError
- importableis not a- str.
- ModuleNotFoundError
- No module in the supplied import string could be found. 
- ImportError
- importableis found but can not be imported or the requested item could not be retrieved from the imported module.