Salome HOME
Merge branch V7_3_1_BR
[modules/gui.git] / src / SUITApp / SUITApp_init_python.cxx
index 1f2be4ff03ea3186af56bf0d7dc04826b22a74fe..1b51a036b470601ac3605433141db97c4752fe19 100644 (file)
 //
 #include "SUITApp_init_python.hxx"
 
-
-PyThreadState* SUIT_PYTHON::_gtstate                = NULL;
-PyObject *SUIT_PYTHON::salome_shared_modules_module = NULL;
-PyInterpreterState* SUIT_PYTHON::_interp            = NULL;
 bool SUIT_PYTHON::initialized                       = false;
 
 void SUIT_PYTHON::init_python(int argc, char **argv)
@@ -37,9 +33,6 @@ void SUIT_PYTHON::init_python(int argc, char **argv)
   Py_SetProgramName(argv[0]);
   Py_Initialize(); // Initialize the interpreter
   PySys_SetArgv(argc, argv);
-  SUIT_PYTHON::_interp = PyThreadState_Get()->interp;
-  PyEval_InitThreads(); // Create (and acquire) the interpreter lock
-  SUIT_PYTHON::_gtstate = PyEval_SaveThread(); // Release global thread state
-  SUIT_PYTHON::initialized = true;
+  PyEval_InitThreads(); // Create (and acquire) the interpreter lock - can be called many times
 }