PYTHON3_VERSION set from PY_MINOR_VERSION

.. so we don't have to remember !
This commit is contained in:
Mark Liversedge
2018-04-20 08:38:37 +01:00
parent 9751876703
commit 43d264e3cb

View File

@@ -28,15 +28,16 @@
#include <QMessageBox>
#include <QProcess>
#if PYTHON3_VERSION < 5
#error "PYTHON3_VERSION must specify the python version for this build eg 6"
#endif
#ifdef slots // clashes with python headers
#undef slots
#endif
#include <Python.h>
// we only really support Python 3, so lets only work on that basis
#if PY_MAJOR_VERSION >= 3
#define PYTHON3_VERSION PY_MINOR_VERSION
#endif
// global instance of embedded python
PythonEmbed *python;
PyThreadState *mainThreadState;