Commit a9dfafb8 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Fix file access error

parent 4c93e990
......@@ -84,7 +84,7 @@ class temp_monitor():
except IOError:
print "Failed to create file: '%s%s'" % (out_path_prefix, out_fnames["core_temp_fn"])
try:
self.core_temp_params_f = open(out_path_prefix + out_fnames["temp_params_fn"], "r+")
self.core_temp_params_f = open(out_path_prefix + out_fnames["temp_params_fn"], "w+")
self.write_temp_params()
except IOError:
self.core_temp_out_f.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment