Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ben Boeckel
QtTesting
Commits
bd00d32a
Commit
bd00d32a
authored
Jan 05, 2007
by
Clinton Stimpson
Browse files
BUG: install default sigint handler after Py_Initialize
parent
932d9c5a
Changes
1
Show whitespace changes
Inline
Side-by-side
pqPythonEventSource.cxx
View file @
bd00d32a
...
...
@@ -40,6 +40,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// self include
#include "pqPythonEventSource.h"
// system includes
#include <signal.h>
// Qt include
#include <QVariant>
#include <QFile>
...
...
@@ -346,6 +349,9 @@ pqPythonEventSource::pqPythonEventSource(QObject* p)
this
->
Internal
=
new
pqInternal
;
// initialize python
Py_Initialize
();
#ifdef SIGINT
signal
(
SIGINT
,
SIG_DFL
);
#endif
PyEval_InitThreads
();
// add QtTesting to python's inittab, so it is
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment