]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0054504: Exception when accessing VTK renderer with libSalomePy module
authorvsr <vsr@opencascade.com>
Tue, 15 Jan 2019 14:30:23 +0000 (17:30 +0300)
committervsr <vsr@opencascade.com>
Mon, 25 Feb 2019 12:30:19 +0000 (15:30 +0300)
src/SALOME_PY/SalomePy.cxx

index ed7ce5028266f20f5c924da6d2ebe2943922fc26..a798fa041f6e88fbd33ede86602b1f674c010300 100755 (executable)
@@ -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();
     }