Salome HOME
Fix instable pb with starting SALOME on Windows V7_4_0
authorvsr <vsr@opencascade.com>
Wed, 28 May 2014 13:22:01 +0000 (17:22 +0400)
committervsr <vsr@opencascade.com>
Wed, 28 May 2014 13:22:01 +0000 (17:22 +0400)
src/Container/Container_init_python.cxx

index bc5e08baa1ad1e99b25749e74cfb8192d41c3855..2034b6d0bc81a59725d2e9054c42cdc464a65441 100644 (file)
@@ -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");
 }