Salome HOME
Some tests are modified to work in session less mode.
[modules/yacs.git] / src / runtime / SalomeProc.cxx
index 6b29b194642f12ba8d71511adfec131a08f9e14e..91572c66a75f4934732e956f4f5b49bd269dead3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -70,30 +70,13 @@ void SalomeProc::saveSchema(std::string xmlSchemaFile)
   vss.closeFileSchema();
 }
 
-//! Get the default study id for the proc
-/*!
- * \return the study id
- */
-int SalomeProc::getDefaultStudyId()
-{
-  std::string value=getProperty("DefaultStudyID");
-  if(value.empty())
-    return 1;
-  else
-    return atoi(value.c_str());
-}
-
 //! Initialise the proc
 void SalomeProc::init(bool start)
 {
-  std::string value=getProperty("DefaultStudyID");
-  if(!value.empty())
-    {
-      //initialise Python module salome with the study id given by value
-      std::string cmd="import salome;salome.salome_init("+value+")";
-      PyGILState_STATE gstate = PyGILState_Ensure(); // acquire the Global Interpreter Lock
-      PyRun_SimpleString(cmd.c_str());
-      PyGILState_Release(gstate); // Release the Global Interpreter Lock
-    }
+  //initialise Python module salome with the study id given by value
+  std::string cmd="import salome;salome.salome_init()";
+  PyGILState_STATE gstate = PyGILState_Ensure(); // acquire the Global Interpreter Lock
+  PyRun_SimpleString(cmd.c_str());
+  PyGILState_Release(gstate); // Release the Global Interpreter Lock
   Proc::init(start);
 }