Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8e64bd8
)
0054504: Exception when accessing VTK renderer with libSalomePy module
author
vsr
<vsr@opencascade.com>
Tue, 15 Jan 2019 14:30:23 +0000
(17:30 +0300)
committer
vsr
<vsr@opencascade.com>
Tue, 15 Jan 2019 14:33:45 +0000
(17:33 +0300)
src/SALOME_PY/SalomePy.cxx
patch
|
blob
|
history
diff --git
a/src/SALOME_PY/SalomePy.cxx
b/src/SALOME_PY/SalomePy.cxx
index ed7ce5028266f20f5c924da6d2ebe2943922fc26..a798fa041f6e88fbd33ede86602b1f674c010300 100755
(executable)
--- 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 ) {
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();
}
if( PyErr_Occurred() ) {
PyErr_Print();
}