]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0054504: Exception when accessing VTK renderer with libSalomePy module rnv/win_9_2
authorvsr <vsr@opencascade.com>
Tue, 15 Jan 2019 14:30:23 +0000 (17:30 +0300)
committerrnv <rnv@opencascade.com>
Thu, 17 Jan 2019 14:51:36 +0000 (17:51 +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();
     }