Salome HOME
control GEOM instance used in SMESH scripts
[modules/smesh.git] / src / SMESH_SWIG / ex29_refine.py
index fabbf71d341596bb5c36eabc328ccd12deb73725..72e0f631a0faeee7e48106daea43d0edc3cb715c 100644 (file)
@@ -36,8 +36,11 @@ import os
 # Values
 # ------
 
+tmpDir = os.getenv('SALOME_TMP_DIR', '/tmp')
+print "Output directory:", tmpDir
+
 # Path for ".med" files
-path = "/tmp/ex29_%s_" % os.getenv('USER','unknown')
+path = os.path.join( tmpDir, "ex29_%s_" % os.getenv('USER','unknown'))
 
 # Name of the shape and the mesh
 name = "Carre"
@@ -229,4 +232,4 @@ MyMesh.ExportMED(path+str(NbCells4)+"_triangles.med", 0)
 # Update the object browser
 # -------------------------
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)