Salome HOME
Avoid crash at "import smesh_selection" in terminal mode
[modules/smesh.git] / src / SMESH_SWIG / SMESH_test2.py
index 9c11bb8b9b54312c4eb3cd97ebae1335b1c92b66..9bd7f1016f9f164a83550b9574098c287287e4a3 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -28,11 +28,11 @@ from SMESH_test1 import *
 
 # ---- compute box
 
-print "-------------------------- compute box"
+print("-------------------------- compute box")
 ret = mesh.Compute()
-print ret
+print(ret)
 log = mesh.GetLog(0); # no erase trace
-for linelog in log:
-    print linelog
+for linelog in log:
+#     print(linelog)
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser()