From 215c9b865b141a381e40d768c38aefc607b21486 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 18 Nov 2008 10:02:56 +0000 Subject: [PATCH] Fix script bugs --- src/SMESH_SWIG/ex29_refine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/ex29_refine.py b/src/SMESH_SWIG/ex29_refine.py index 448cbf833..5755ad77b 100644 --- a/src/SMESH_SWIG/ex29_refine.py +++ b/src/SMESH_SWIG/ex29_refine.py @@ -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)