# HG changeset patch # User scottx611x # Date 1466716700 14400 # Node ID f38beb0743d5bf3c66f6046b3c0d8b67e2f22b9d # Parent 355ecb4aaffd0e3cd124fbe397d569565d54e52a planemo upload diff -r 355ecb4aaffd -r f38beb0743d5 data_manager_gene_annotation/data_manager/data_manager.py --- 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))