Mercurial > repos > iuc > data_manager_cat
changeset 1:74af283d8ebd draft
"planemo upload commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author | iuc |
---|---|
date | Sun, 22 Nov 2020 12:47:10 +0000 |
parents | cffd8e2382cf |
children | 472dabcb03bf |
files | data_manager/data_manager_cat.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/data_manager_cat.py Mon Dec 09 10:28:15 2019 -0500 +++ b/data_manager/data_manager_cat.py Sun Nov 22 12:47:10 2020 +0000 @@ -89,7 +89,7 @@ url_download(args.db_url, args.install_path) else: cat_prepare(args.install_path) - for root, dirs, files in os.walk(args.install_path): + for root, dirs, _ in os.walk(args.install_path): for dname in dirs: if dname.endswith('CAT_database'): cat_db = dname @@ -109,7 +109,8 @@ taxonomy_folder=os.path.join(cat_dir, tax_db)) dm_dict['data_tables'][data_table].append(data_table_entry) # save info to json file - open(args.config_file, 'w').write(json.dumps(dm_dict)) + with open(args.config_file, 'w') as fh: + json.dump(dm_dict, fh, sort_keys=True) if __name__ == "__main__":