From: vsr Date: Tue, 15 Jan 2019 14:30:23 +0000 (+0300) Subject: 0054504: Exception when accessing VTK renderer with libSalomePy module X-Git-Tag: V9_3_0a1~5^2^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Frnv%2Fwin_9_2;p=modules%2Fgui.git 0054504: Exception when accessing VTK renderer with libSalomePy module --- 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(); }