Repository 'data_manager_fetch_gene_annotation'
hg clone https://toolshed.g2.bx.psu.edu/repos/scottx611x/data_manager_fetch_gene_annotation

Changeset 12:967e0c774dd8 (2016-06-22)
Previous changeset 11:9f718726ed86 (2016-06-17) Next changeset 13:865d5b55cce1 (2016-06-22)
Commit message:
Uploaded
modified:
data_manager_gene_annotation/data_manager/data_manager.py
b
diff -r 9f718726ed86 -r 967e0c774dd8 data_manager_gene_annotation/data_manager/data_manager.py
--- a/data_manager_gene_annotation/data_manager/data_manager.py Fri Jun 17 16:36:53 2016 -0400
+++ b/data_manager_gene_annotation/data_manager/data_manager.py Wed Jun 22 15:50:22 2016 -0400
b
@@ -30,14 +30,11 @@
 
 
 def url_download(url, name,  workdir):
-    # Create path if it doesn't exist
-    if not os.path.exists(workdir):
-        os.makedirs(workdir)
 
     response = requests.get(url=url, stream=True)
 
     # Create path that we will write the file to
-    file_path = os.path.join(workdir, 'download_{}.dat'.format(name))
+    file_path = 'download_{}.dat'.format(name)
 
     block_size = 10 * 1024 * 1024  # 10MB chunked download
     with open(file_path, 'w+') as f: