# HG changeset patch # User Catherine Wise # Date 1389674995 -39600 # Node ID 7b1720b6acf28f74afae92f6a400fbb3b403264a # Parent cf4cf95e6678ea142f42ae8e3bcab82b2a3bd5a8 remove extra files diff -r cf4cf95e6678 -r 7b1720b6acf2 TrustStoreGalaxyImport.py --- a/TrustStoreGalaxyImport.py Mon Jan 13 09:21:20 2014 +1100 +++ b/TrustStoreGalaxyImport.py Tue Jan 14 15:49:55 2014 +1100 @@ -2,6 +2,7 @@ import shutil import gzip import tempfile +import os from py_ts import TrustStoreClient, ts_utils from galaxy.datatypes.checkers import * @@ -82,6 +83,10 @@ gzipped_file.close() shutil.copy(uncompressed, outputFile) + try: + os.remove(uncompressed) + except OSError: + pass else: shutil.copy(download, outputFile) else: