From: abd Date: Fri, 29 Jun 2007 12:46:44 +0000 (+0000) Subject: Restore Windows python debug workaround. X-Git-Tag: V4_1_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60faf28f27123ecdbaf0efde8143b27deb70737f;p=modules%2Fgui.git Restore Windows python debug workaround. Now Windows Version is supporting several study in one session. --- 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 = "<