1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
"""
This module is an adapter for scripts that explicitly import from named
submodules as opposed to from the top-level vtk module. This is necessary
because the specific submodules might not exist when VTK_ENABLE_KITS is enabled.
"""
from __future__ import absolute_import
try:
# use relative import for installed modules
from .@_module_kit@Python import *
except ImportError:
# during build and testing, the modules will be elsewhere,
# e.g. in lib directory or Release/Debug config directories
from @_module_kit@Python import *
|