Commit 14306fcc authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot

Merge topic 'export-now-python-check'

ed271b88 pqImmediateExportReaction: check for python properly
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3324
parents f125466c ed271b88
Pipeline #138970 running with stage
...@@ -50,7 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -50,7 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqPipelineSource.h" #include "pqPipelineSource.h"
#include "pqServerManagerModel.h" #include "pqServerManagerModel.h"
#ifdef PARAVIEW_ENABLE_PYTHON #if VTK_MODULE_ENABLE_VTK_PythonInterpreter
#include "vtkPythonInterpreter.h" #include "vtkPythonInterpreter.h"
#endif #endif
...@@ -411,7 +411,7 @@ void pqImmediateExportReaction::onTriggered() ...@@ -411,7 +411,7 @@ void pqImmediateExportReaction::onTriggered()
// cerr << command.toStdString() << endl; // cerr << command.toStdString() << endl;
// ensure Python in initialized. // ensure Python in initialized.
#ifdef PARAVIEW_ENABLE_PYTHON #if VTK_MODULE_ENABLE_VTK_PythonInterpreter
vtkPythonInterpreter::Initialize(); vtkPythonInterpreter::Initialize();
vtkPythonInterpreter::RunSimpleString(command.toLocal8Bit().data()); vtkPythonInterpreter::RunSimpleString(command.toLocal8Bit().data());
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment