Python script for HOMARD
Test tutorial_5 associe au tutorial 5
"""
-__revision__ = "V3.1"
+__revision__ = "V4.01"
#========================================================================
TEST_NAME = "tutorial_5"
#
#========================================================================
#========================================================================
-def homard_exec(theStudy):
+def homard_exec():
"""
Python script for HOMARD
"""
# 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, eee:
+except Exception as eee:
raise Exception('Pb in homard_exec: '+eee.message)
#
# Test of the results
# ==================================
#
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)