changeset 46:f4f48007db67 draft

Uploaded
author trinity_ctat
date Thu, 25 Oct 2018 20:55:44 -0400
parents 3acb7bc809b5
children fb13fae2c873
files data_manager/add_ctat_resource_lib.py
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/add_ctat_resource_lib.py	Thu Oct 25 17:38:12 2018 -0400
+++ b/data_manager/add_ctat_resource_lib.py	Thu Oct 25 20:55:44 2018 -0400
@@ -1338,9 +1338,6 @@
     # params = from_json_string(open(filename).read())
     # target_directory = params['output_data'][0]['extra_files_path']
     # os.mkdir(target_directory)
-
-    print "The value of download_url argument is:\n\t{:s}".format(str(args.download_url))
-    sys.stdout.flush()
     
     lib_was_built = False
     extracted_directory = None
@@ -1350,11 +1347,10 @@
     download_location_is_set = (args.download_location is not None) and (args.download_location != "")
     source_location_is_set = (args.source_location is not None) and (args.source_location != "")
     build_location_is_set = (args.build_location is not None) and (args.build_location != "")
-    # FIX - need to make sure we are handling all "possible" combinations of arguments.
-    # Probably would be good if we could simplify/remove some of them.
-    # But I think the current interface is using them all.
-
+    
     if download_url_is_set:
+        print "The value of download_url argument is:\n\t{:s}".format(str(args.download_url))
+        sys.stdout.flush()
         if source_location_is_set:
             raise ValueError("Argument --source_location cannot be used in combination with --download_url.")
         if not download_location_is_set: