Skip to content
Snippets Groups Projects
Commit c5330ac7 authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

python: if lib not available skip custom loader

parent ebc35aea
No related branches found
No related tags found
2 merge requests!11541Branch for the v9.4.0 release,!11522Added automatic include of the new data_model module.
Checking pipeline status
......@@ -25,6 +25,9 @@ class VTKMetaHook(MetaPathFinder):
if fullname.startswith("vtkmodules.vtk"):
vtk_module_name = fullname.split(".")[1]
module_path = find_lib_path(path, vtk_module_name)
if module_path is None:
return None
LOADING_STACK.append(fullname)
return importlib.util.spec_from_file_location(fullname, module_path, loader=VTKLoader(fullname, module_path))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment