Salome HOME
SetCurrentStudy --> UpdateStudy
[modules/homard.git] / src / tests / Test / tutorial_3.py
index ae8e15354f89d32cfb7b187aa6d286ff12e2d7bb..d51a5492156efb54ae36a35481fceaf8e6bf0931 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test tutorial_3 associe au tutorial 3
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_3"
@@ -30,8 +30,6 @@ N_ITER_TEST_FILE = 2
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
 PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
@@ -52,8 +50,11 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 3, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +71,7 @@ Python script for HOMARD
   #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Hypotheses
     # ==========
@@ -209,7 +210,7 @@ if ERREUR:
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 3, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)