Salome HOME
Merge branch 'V9_2_2_BR'
[modules/homard.git] / src / tests / Test / tutorial_3.py
index 7b7dfaa3b12940e14ebacd5a0282f2474d990e42..229a751662af715501977061a6e2e0427c9ef5f7 100755 (executable)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2011-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2019  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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.SetCurrentStudy(salome.myStudy)
+  #  HOMARD.UpdateStudy()
     #
     # Hypotheses
     # ==========
@@ -209,8 +210,8 @@ if ERREUR:
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 3, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)