Salome HOME
IPAL54104: Wrong prismatic mesh
[modules/smesh.git] / src / SMESH_SWIG / ex29_refine.py
index 938d0eac100553a1fd32ff368f33b7ba5c5329d3..72e0f631a0faeee7e48106daea43d0edc3cb715c 100644 (file)
@@ -36,8 +36,11 @@ import os
 # Values
 # ------
 
 # Values
 # ------
 
+tmpDir = os.getenv('SALOME_TMP_DIR', '/tmp')
+print "Output directory:", tmpDir
+
 # Path for ".med" files
 # 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"
 
 # Name of the shape and the mesh
 name = "Carre"