]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix bug of ParaView 3.98 porting - use proper Python module
authorvsr <vsr@opencascade.com>
Tue, 30 Apr 2013 03:54:21 +0000 (03:54 +0000)
committervsr <vsr@opencascade.com>
Tue, 30 Apr 2013 03:54:21 +0000 (03:54 +0000)
src/SALOME_PY/SalomePy.cxx

index 834a176b1bc068b63057be770120194ab7e66457..c7ec622c751a96e7ec25b54b8b3ca1955182e9d9 100755 (executable)
@@ -111,8 +111,10 @@ static PyObject* GetPyClass( const char* theClassName )
     aVTKModule = PyImport_ImportModule( "libVTKGraphicsPython" ); 
 #elif VTK_XVERSION < 50700
     aVTKModule = PyImport_ImportModule( "vtk.libvtkRenderingPython" ); 
-#else
+#elif VTK_XVERSION < 60000
     aVTKModule = PyImport_ImportModule( "vtkRenderingPython" ); 
+#else
+    aVTKModule = PyImport_ImportModule( "vtkRenderingCorePython" ); 
 #endif
     if( PyErr_Occurred() ) {
       PyErr_Print();