From 979e7defdaf792d537034bc15b4023a0e5ad130f Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 15 Jan 2019 17:30:23 +0300 Subject: [PATCH] 0054504: Exception when accessing VTK renderer with libSalomePy module --- src/SALOME_PY/SalomePy.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/SALOME_PY/SalomePy.cxx b/src/SALOME_PY/SalomePy.cxx index ed7ce5028..a798fa041 100755 --- a/src/SALOME_PY/SalomePy.cxx +++ b/src/SALOME_PY/SalomePy.cxx @@ -118,15 +118,7 @@ static PyTypeObject* GetPyClass( const char* theClassName ) static PyObject* aVTKModule = 0; PyObject* aPyClass = 0; if( !aVTKModule ) { -#if VTK_XVERSION < 30000 - aVTKModule = PyImport_ImportModule( "libVTKGraphicsPython" ); -#elif VTK_XVERSION < 50700 - aVTKModule = PyImport_ImportModule( "vtk.libvtkRenderingPython" ); -#elif VTK_XVERSION < 60000 - aVTKModule = PyImport_ImportModule( "vtkRenderingPython" ); -#else - aVTKModule = PyImport_ImportModule( "vtkRenderingCorePython" ); -#endif + aVTKModule = PyImport_ImportModule( "vtk.vtkRenderingCorePython" ); if( PyErr_Occurred() ) { PyErr_Print(); } -- 2.39.2