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
bef14c55
Commit
bef14c55
authored
Jan 05, 2007
by
Clinton Stimpson
Browse files
BUG: better fix for sigint handler.
parent
bd00d32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pqPythonEventSource.cxx
View file @
bef14c55
...
...
@@ -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
...
...
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