Commit b7950310 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: Hoping to fix the windows python testing issue.

parent 79b39f6e
...@@ -424,9 +424,12 @@ pqPythonEventSource::pqPythonEventSource(QObject* p) ...@@ -424,9 +424,12 @@ pqPythonEventSource::pqPythonEventSource(QObject* p)
#ifdef SIGINT #ifdef SIGINT
signal(SIGINT, SIG_DFL); signal(SIGINT, SIG_DFL);
#endif #endif
PyEval_InitThreads();
PyEval_ReleaseLock();
} }
PyEval_InitThreads();
PyEval_AcquireLock();
// add QtTesting to python's inittab, so it is // add QtTesting to python's inittab, so it is
// available to all interpreters // available to all interpreters
PyImport_AppendInittab(const_cast<char*>("QtTesting"), initQtTesting); PyImport_AppendInittab(const_cast<char*>("QtTesting"), initQtTesting);
......
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