labscript_utils.versions.get_import_path
- labscript_utils.versions.get_import_path(import_name)[source]
Get which entry in sys.path a module would be imported from, without importing it.
- Parameters:
import_name (str) – The module name.
- Raises:
ModuleNotFoundError – Raised if the module is not installed.
NotImplementedError – Raised if the module is a “namespace package”. Support for namepsace packages is not currently availabled.
- Returns:
The path to the folder containing the module.
- Return type: