]> SALOME platform Git repositories - modules/homard.git/blobdiff - src/tests/Test/tutorial_3.py
Salome HOME
Merge changes from 'master' branch.
[modules/homard.git] / src / tests / Test / tutorial_3.py
index c4efe620b192392d47444b2cfc04920b0e372729..d9b843715087a5b55de52a002d80581f77c1da0e 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()
   #
   # Hypothese "hypo_0vers1"
   # =======================
@@ -160,7 +160,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:
@@ -177,6 +177,6 @@ gzip_gunzip(DATA_TUTORIAL, 3, 1)
 # ==================================
 #
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)