]> SALOME platform Git repositories - modules/homard.git/blobdiff - src/tests/Test/tutorial_4.py
Salome HOME
Merge changes from 'master' branch.
[modules/homard.git] / src / tests / Test / tutorial_4.py
index 3816780d7a7463eebfc0ca1089817dd05869e22b..1853abe37ebe0de6ac537196adb8f553c9cc4a71 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()
 #
   # Frontieres
   # ==========
@@ -147,7 +147,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:
@@ -164,6 +164,6 @@ gzip_gunzip(DATA_TUTORIAL, 4, 1)
 # ==================================
 #
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)