diff TrustStoreGalaxyBrowse.py @ 31:e4c13ce69e25

More helpful output.
author Catherine Wise <catherine.wise@csiro.au>
date Mon, 18 May 2015 12:07:05 +1000
parents 157062f5c547
children 20c1d4fa4084
line wrap: on
line diff
--- a/TrustStoreGalaxyBrowse.py	Mon May 18 11:49:32 2015 +1000
+++ b/TrustStoreGalaxyBrowse.py	Mon May 18 12:07:05 2015 +1000
@@ -109,7 +109,6 @@
     all_params = None
     with open(properties_file, 'r') as file_:
         settings = file_.read()
-        print(settings)
         all_params = json.loads(settings)
         json_params = all_params.get("param_dict")
         metadata_path = all_params["job_config"]["TOOL_PROVIDED_JOB_METADATA_FILE"]
@@ -166,9 +165,11 @@
             for path in paths:
                 locations = utils.Navigation.files_at_path(root, path)
                 for location in locations:
-                    if not locations:
+                    if not location:
                         print("Path not found: " + path)
                         continue
+                    else:
+                        print("Downloading file... " + location.name)
                     filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name)
                     extension = os.path.splitext(filename)[1]
                     name = construct_multi_filename(hda_id, filename, extension)