Commit 3196c7f8 authored by jcfr's avatar jcfr
Browse files

ENH: qSlicerCoreApplication::initialize now initializes PythonQt

Doing so will ensure python interpreter is properly initialized.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@14578 3bd1e089-480b-0410-8dfb-8563597acbee
parent 36491c4e
......@@ -27,6 +27,11 @@
// - Slicer3_USE_PYTHONQT
#include "vtkSlicerConfigure.h"
#ifdef Slicer3_USE_PYTHONQT
// PythonQt includes
#include <PythonQt.h>
#endif
// SlicerQt includes
#include "qSlicerCoreApplication.h"
#include "qSlicerModuleManager.h"
......@@ -334,6 +339,11 @@ void qSlicerCoreApplication::initialize(bool& exitWhenDone)
// Instanciate moduleManager
d->ModuleManager = QSharedPointer<qSlicerModuleManager>(new qSlicerModuleManager);
#ifdef Slicer3_USE_PYTHONQT
// Initialize Python
this->corePythonManager()->mainContext();
#endif
// Parse command line arguments
d->parseArguments();
......
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