From 60faf28f27123ecdbaf0efde8143b27deb70737f Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 29 Jun 2007 12:46:44 +0000 Subject: [PATCH] Restore Windows python debug workaround. Now Windows Version is supporting several study in one session. --- src/PythonConsole/PythonConsole_PyInterp.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/PythonConsole/PythonConsole_PyInterp.cxx b/src/PythonConsole/PythonConsole_PyInterp.cxx index da23b5f04..e061b3677 100755 --- a/src/PythonConsole/PythonConsole_PyInterp.cxx +++ b/src/PythonConsole/PythonConsole_PyInterp.cxx @@ -79,7 +79,7 @@ bool PythonConsole_PyInterp::initState() * The GIL is acquired and will be held on initState output * It is the caller responsability to release the lock if needed */ - PyEval_AcquireLock(); + /*PyEval_AcquireLock(); #ifdef WNT _tstate = PyGILState_GetThisThreadState(); // if no thread state defined @@ -91,7 +91,18 @@ bool PythonConsole_PyInterp::initState() _tstate = Py_NewInterpreter(); // create an interpreter and save current state PySys_SetArgv(PyInterp_base::_argc,PyInterp_base::_argv); // initialize sys.argv //if(MYDEBUG) MESSAGE("PythonConsole_PyInterp::initState - this = "<