]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Integrate a patch by Paul RASCLE for V3.2.0b1.
authorjfa <jfa@opencascade.com>
Tue, 18 Apr 2006 15:40:43 +0000 (15:40 +0000)
committerjfa <jfa@opencascade.com>
Tue, 18 Apr 2006 15:40:43 +0000 (15:40 +0000)
src/PyInterp/PyInterp_base.cxx
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx

index 0e0a5622c3677b48b93d52572ad1c332f59bad29..1afac6ac28dfc35c0f55d8fb5364cc0f2c000f2a 100644 (file)
@@ -224,7 +224,7 @@ int PyInterp_base::run(const char *command)
       _atFirst = false;
       return ret;
     }
-    ret = simpleRun("salome.salome_init()");
+    ret = simpleRun("salome.salome_init(0,1)");
     if (ret) { 
       _atFirst = false;
       return ret;
index 62b41909fe62ebc52e403e0d6d91ca0f1aef94dc..604c599bf43cbb7d60848b48b88d8c34ba54fb69 100644 (file)
@@ -994,7 +994,8 @@ void SALOME_PYQT_Module::initInterp( int theStudyId )
     return;
   }
   // ... then call a method
-  PyObjWrapper aRes( PyObject_CallMethod( aMod, "salome_init", "" ) );
+  int embedded = 1;
+  PyObjWrapper aRes( PyObject_CallMethod( aMod, "salome_init", "ii", theStudyId, embedded ) );
   if( !aRes ) {
     // Error!
     PyErr_Print();