Commit bef14c55 authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

BUG: better fix for sigint handler.

parent bd00d32a
......@@ -347,11 +347,15 @@ pqPythonEventSource::pqPythonEventSource(QObject* p)
: pqThreadedEventSource(p)
{
this->Internal = new pqInternal;
// initialize python
Py_Initialize();
int initPy = Py_IsInitialized();
if(!initPy)
{
// initialize python
Py_Initialize();
#ifdef SIGINT
signal(SIGINT, SIG_DFL);
signal(SIGINT, SIG_DFL);
#endif
}
PyEval_InitThreads();
// add QtTesting to python's inittab, so it is
......
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