Mercurial > repos > yating-l > data_manager_fetch_reference_data
comparison data_manager/fetch_reference_data.py @ 18:dda792940610 draft
planemo upload
author | yating-l |
---|---|
date | Thu, 04 May 2017 12:28:28 -0400 |
parents | 85e817cdf4bd |
children |
comparison
equal
deleted
inserted
replaced
17:8acd0b4359cc | 18:dda792940610 |
---|---|
9 import urllib2 | 9 import urllib2 |
10 import tarfile | 10 import tarfile |
11 | 11 |
12 from galaxy.util.json import from_json_string, to_json_string | 12 from galaxy.util.json import from_json_string, to_json_string |
13 | 13 |
14 CHUNK_SIZE = 2**20 #1mb | |
15 | 14 |
16 def cleanup_before_exit(tmp_dir): | 15 def cleanup_before_exit(tmp_dir): |
17 if tmp_dir and os.path.exists(tmp_dir): | 16 if tmp_dir and os.path.exists(tmp_dir): |
18 shutil.rmtree(tmp_dir) | 17 shutil.rmtree(tmp_dir) |
19 | 18 |