Commit 540f2c5
committed
python: Add adapter modules when VTK_ENABLE_KITS is ON
Some Python scripts explicitly import from named submodules as opposed to from
the top-level vtk module. When VTK_ENABLE_KITS is ON those modules might not
exist. This results in ImportErrors, like the one shown below when running the
vtkFiltersCorePython-pointsPrecisions test:
Traceback (most recent call last):
File "C:/dev/VTK/Filters/Core/Testing/Python/pointsPrecisions.py", line 3, in <module>
from vtk.vtkCommonCore import vtkPoints, vtkDoubleArray, vtkIdList
ImportError: No module named vtkCommonCore
This commit adds adapter modules to allow such scripts to run unmodified when
VTK_ENABLE_KITS is ON.1 parent 31b7b0e commit 540f2c5
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
302 | 314 | | |
303 | 315 | | |
304 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments