tmp_dir = os.getenv("TmpDir")
if tmp_dir == None:
- tmp_dir = "/tmp"
+ import tempfile
+ tmp_dir = tempfile.mkdtemp()
-save_file = tmp_dir + "/TimeStamps_save.hdf"
+save_file = os.path.join(tmp_dir, "TimeStamps_save.hdf")
print "Save to file ", save_file
pvsimple.OpenDataFile(data_file)
NbOfLoops = 4
#thePath = os.getenv("TMP_DIR")
thePrefix = "TestPngFromAnim"
-thePath = os.path.join("/tmp", thePrefix)
+import tempfile
+thePath = os.path.join(tempfile.mkdtemp(), thePrefix)
thePath += ".png"
displayMng = DisplayManager()