details: http://www.bx.psu.edu/hg/galaxy/rev/a961e11898af changeset: 2521:a961e11898af user: Dan Blankenberg <dan@bx.psu.edu> date: Mon Aug 03 16:23:37 2009 -0400 description: Fix megablast wrapper never cleaning up tempfiles. 1 file(s) affected in this change: tools/metag_tools/megablast_wrapper.py diffs (19 lines): diff -r 7cf7b078f890 -r a961e11898af tools/metag_tools/megablast_wrapper.py --- a/tools/metag_tools/megablast_wrapper.py Mon Aug 03 15:45:26 2009 -0400 +++ b/tools/metag_tools/megablast_wrapper.py Mon Aug 03 16:23:37 2009 -0400 @@ -81,6 +81,8 @@ 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 @@ print line os.remove( './error.log' ) -if __name__ == "__main__" : __main__() \ No newline at end of file +if __name__ == "__main__" : __main__()