Commit a7ec7335 authored by Jan Möbius's avatar Jan Möbius

Ifdefs to disable pythonInterpreter in python widget

parent 909be985
......@@ -40,15 +40,17 @@
\*===========================================================================*/
#ifdef PYTHON_ENABLED
#include <pybind11/include/pybind11/pybind11.h>
#include <pybind11/include/pybind11/embed.h>
#include <OpenFlipper/PythonInterpreter/PythonInterpreter.hh>
#endif
#include "pythonWidget.hh"
#include <iostream>
#include <QObject>
#include <OpenFlipper/PythonInterpreter/PythonInterpreter.hh>
//#include <dlfcn.h>
......@@ -91,10 +93,11 @@ PythonWidget::PythonWidget(QWidget *parent )
void PythonWidget::runScript() {
#ifdef PYTHON_ENABLED
PythonInterpreter* interpreter = PythonInterpreter::getInstance();
interpreter->runScript(scriptWidget->toPlainText());
#endif
}
......
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