Salome HOME
Merge changes from 'master' branch.
[modules/homard.git] / src / tests / Test / tutorial_5.py
index 1ffd27205d3d8ef20a3bc9ed840afc041e4e93eb..00234d92fb2d8ff8ef17af2d77a0a0b754ae903a 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()
 #
   # Frontiere
   # =========
@@ -131,7 +131,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:
@@ -148,6 +148,6 @@ gzip_gunzip(DATA_TUTORIAL, 5, 1)
 # ==================================
 #
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)