Commit 489f50aa authored by Jan Möbius's avatar Jan Möbius
Browse files

OpenFlipper Main file includes for python support

parent abdf4114
...@@ -66,6 +66,10 @@ ...@@ -66,6 +66,10 @@
#include <execinfo.h> #include <execinfo.h>
#endif #endif
#ifdef PYTHON_ENABLED
#include <PythonInterpreter/PythonInterpreter.hh>
#endif
#ifdef USE_OPENMP #ifdef USE_OPENMP
#endif #endif
...@@ -764,6 +768,9 @@ int main(int argc, char **argv) ...@@ -764,6 +768,9 @@ int main(int argc, char **argv)
// create core ( this also reads the ini files ) // create core ( this also reads the ini files )
Core * w = new Core( ); Core * w = new Core( );
#ifdef PYTHON_ENABLED
setCorePointer(w);
#endif
QString tLang = OpenFlipperSettings().value("Core/Language/Translation","en_US").toString(); QString tLang = OpenFlipperSettings().value("Core/Language/Translation","en_US").toString();
...@@ -820,6 +827,11 @@ int main(int argc, char **argv) ...@@ -820,6 +827,11 @@ int main(int argc, char **argv)
// create widget ( this also reads the ini files ) // create widget ( this also reads the ini files )
Core * w = new Core( ); Core * w = new Core( );
#ifdef PYTHON_ENABLED
setCorePointer(w);
#endif
// After setting all Options from command line, build the real gui // After setting all Options from command line, build the real gui
w->init(); w->init();
......
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