changeset 36:f38beb0743d5 draft

planemo upload
author scottx611x
date Thu, 23 Jun 2016 17:18:20 -0400
parents 355ecb4aaffd
children 7af38f95bc8d
files data_manager_gene_annotation/data_manager/data_manager.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager_gene_annotation/data_manager/data_manager.py	Thu Jun 23 17:12:32 2016 -0400
+++ b/data_manager_gene_annotation/data_manager/data_manager.py	Thu Jun 23 17:18:20 2016 -0400
@@ -55,6 +55,8 @@
 
 def main(args):
 
+    work_dir = os.getcwd()
+
     # Attempt to download gene annotation file from given url
     gene_annotation_file_name = url_download(args.url)
 
@@ -65,15 +67,11 @@
                 'value': str(datetime.datetime.now()),
                 'dbkey': str(args.name),
                 'name': gene_annotation_file_name,
-                'path': os.path.join(os.getcwd(), gene_annotation_file_name)
+                'path': os.path.join(work_dir, gene_annotation_file_name)
             }
         }
     }
 
-    with open("/Users/scott/Desktop/cool.txt", "w+") as f:
-        f.write(os.path.join(os.getcwd(), gene_annotation_file_name))
-        f.write("\n")
-        
     with open(os.path.join(args.output), "w+") as f:
         f.write(json.dumps(data_manager_entry))