From: vsr Date: Wed, 28 May 2014 13:22:01 +0000 (+0400) Subject: Fix instable pb with starting SALOME on Windows X-Git-Tag: V7_4_0^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc7e203fea8d1e9e1136102c724b1a434a02489e;p=modules%2Fkernel.git Fix instable pb with starting SALOME on Windows --- diff --git a/src/Container/Container_init_python.cxx b/src/Container/Container_init_python.cxx index bc5e08baa..2034b6d0b 100644 --- a/src/Container/Container_init_python.cxx +++ b/src/Container/Container_init_python.cxx @@ -52,8 +52,8 @@ void KERNEL_PYTHON::init_python(int argc, char **argv) Py_SetProgramName(salome_python); Py_Initialize(); // Initialize the interpreter PySys_SetArgv(argc, argv); + PyRun_SimpleString("import threading\n"); PyEval_InitThreads(); // Create (and acquire) the interpreter lock PyEval_ReleaseLock(); // Py_InitThreads acquires the GIL - PyRun_SimpleString("import threading\n"); }