Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
a7ec7335
Commit
a7ec7335
authored
Jan 23, 2019
by
Jan Möbius
Browse files
Ifdefs to disable pythonInterpreter in python widget
parent
909be985
Changes
1
Hide whitespace changes
Inline
Side-by-side
widgets/pythonWidget/pythonWidget.cc
View file @
a7ec7335
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment