Skip to content

Commit 05f1a9b

Browse files
FIX: Fix vtkAddon kit import
- vtkAddon is now part of vtkmodules and should be imported from it
1 parent 91ae4a0 commit 05f1a9b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Base/Python/vtkAddon.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@
22
namespace.
33
"""
44

5-
# Importing VTK is required for loading its Python modules and ensuring seamless instantiation
6-
# of VTK-based MRML or Slicer Python modules from code executed in both "PythonSlicer executable"
7-
# and the "Slicer Python Console" environments. For more details, see Base/Python/slicer/__init__.py
8-
import vtk # noqa: F401
9-
10-
from vtkAddonPython import *
11-
12-
# Cleanup: Removing things the user shouldn't have to see.
13-
del vtk
5+
from vtkmodules.vtkAddonPython import *

0 commit comments

Comments
 (0)