chromatictools.imports module¶
Utilities for imports
- chromatictools.imports.import_if_installed(name: str) Union[module, ModuleNotFoundError]¶
Import a module if it is installed. Otherwise return a
ModuleNotFoundError- Parameters
name (str) – Module name
- Returns
The module, if it is found. Otherwise a
ModuleNotFoundErrorinstance- Return type
module or ModuleNotFoundError