Salome HOME
Merge changes from 'master' branch.
[modules/homard.git] / src / tests / Test / tutorial_1.py
index b227bd2aba1bf6729694a831689b040bdf2bb48f..96a3868a970a8658e09f62034a8548b047625ee0 100755 (executable)
@@ -69,12 +69,12 @@ IPAR.append("AP_MODULES_LIST", "Homard")
 #
 #========================================================================
 #========================================================================
-def homard_exec(theStudy):
+def homard_exec():
   """
 Python script for HOMARD
   """
   #
-  homard.SetCurrentStudy(theStudy)
+  homard.UpdateStudy()
   #
   # Hypotheses
   # ==========
@@ -120,7 +120,7 @@ homard.SetLanguageShort("fr")
 # Exec of HOMARD-SALOME
 #
 try :
-  ERROR = homard_exec(salome.myStudy)
+  ERROR = homard_exec()
   if ERROR :
     raise Exception('Pb in homard_exec at iteration %d' %ERROR )
 except Exception as eee:
@@ -137,6 +137,6 @@ gzip_gunzip(DATA_TUTORIAL, 1, 1)
 # ==================================
 #
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)