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