changeset 2:ad471b193191

Fix blank results when running on NFS.
author Dave Bouvier <dave@bx.psu.edu>
date Fri, 16 Jan 2015 14:51:32 -0500
parents 7852385470f3
children df7548445f4e
files microsats_alignment_level.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/microsats_alignment_level.py	Thu Apr 10 13:47:31 2014 -0400
+++ b/microsats_alignment_level.py	Fri Jan 16 14:51:32 2015 -0500
@@ -42,6 +42,7 @@
             tmpin = tempfile.NamedTemporaryFile()
             tmpout = tempfile.NamedTemporaryFile()
             tmpin.write(block.strip())
+            tmpin.flush()
             cmdline = sputnik_cmd + " " + tmpin.name + "  > /dev/null 2>&1 >> " + tmpout.name
             try:
                 os.system(cmdline)