X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Ffiles%2Ftutorial_1.py;h=b05232c3677ff86967530ff9813d33e6302e0dc6;hb=refs%2Ftags%2FV9_13_0b1;hp=7350253798776553e7b0c690c100c6d7b8fd476e;hpb=f02ac3a4e60a22757b97ae85c5e79f5558bf4b22;p=modules%2Fhomard.git diff --git a/doc/files/tutorial_1.py b/doc/files/tutorial_1.py index 73502537..b05232c3 100755 --- a/doc/files/tutorial_1.py +++ b/doc/files/tutorial_1.py @@ -1,6 +1,6 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright (C) 2011-2016 CEA/DEN, EDF R&D +# Copyright (C) 2011-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -20,9 +20,9 @@ # """ Exemple de couplage HOMARD-Salome -Copyright EDF 1996, 2010, 2018 +Copyright EDF 1996, 2010, 2019 """ -__revision__ = "V3.1" +__revision__ = "V3.03" # import os import sys @@ -33,11 +33,9 @@ PATH_HOMARD = os.getenv("HOMARD_ROOT_DIR") DATA_TUTORIAL = os.path.join(PATH_HOMARD, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads") DATA_TUTORIAL = os.path.normpath(DATA_TUTORIAL) sys.path.append(DATA_TUTORIAL) -from tutorial_util import gzip_gunzip from tutorial_util import creation_dircase # ================================== DIRCASE = creation_dircase(1) -gzip_gunzip(DATA_TUTORIAL, 1, -1) # ================================== # import salome @@ -45,7 +43,7 @@ salome.salome_init() import HOMARD # homard = salome.lcc.FindOrLoadComponent("FactoryServer", "HOMARD") -homard.SetCurrentStudy(salome.myStudy) +homard.UpdateStudy() # #============================= Début des commandes ============================= # @@ -84,9 +82,5 @@ erreur = iter_1_3.Compute(1, 2) # #============================== Fin des commandes ============================== # -# ================================== -gzip_gunzip(DATA_TUTORIAL, 1, 1) -# ================================== -# if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(True) + salome.sg.updateObjBrowser()