Salome HOME
Fix script bugs
authorvsr <vsr@opencascade.com>
Tue, 18 Nov 2008 10:03:28 +0000 (10:03 +0000)
committervsr <vsr@opencascade.com>
Tue, 18 Nov 2008 10:03:28 +0000 (10:03 +0000)
src/SMESH_SWIG/ex29_refine.py

index 448cbf833074f009f4f9538e973de76722aeb42c..5755ad77be1aebb765a8185dac6dd7528afa1ed2 100644 (file)
@@ -6,11 +6,13 @@
 import geompy
 import smesh
 
+import os
+
 # Values
 # ------
 
 # Path for ".med" files
-path = "/tmp/ex29_"
+path = "/tmp/ex29_%s_" % os.getenv('USER','unknown')
 
 # Name of the shape and the mesh
 name = "Carre"
@@ -202,4 +204,4 @@ MyMesh.ExportMED(path+str(NbCells4)+"_triangles.med", 0)
 # Update the object browser
 # -------------------------
 
-salome.sg.updateObjBrowser(1)
+geompy.salome.sg.updateObjBrowser(1)