Fix megablast wrapper never cleaning up tempfiles.

This commit is contained in:
Daniel Blankenberg
2009-08-03 16:23:37 -04:00
parent 460fd53bb7
commit da67dccfda
+3 -1
View File
@@ -81,6 +81,8 @@ def __main__():
output.write( "%s\n" % new_line )
output.close()
os.unlink( mega_temp_output ) #remove the tempfile that we just reformated the contents of
if invalid_lines:
print "Unable to parse %d lines. Keep the default format." % invalid_lines
@@ -91,4 +93,4 @@ def __main__():
print line
os.remove( './error.log' )
if __name__ == "__main__" : __main__()
if __name__ == "__main__" : __main__()