Commit ed271b88 authored by Ben Boeckel's avatar Ben Boeckel

pqImmediateExportReaction: check for python properly

parent f125466c
...@@ -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