Mercurial > repos > thanhlv > data_manager_build_ariba_database
comparison data_manager/ariba_database_builder.py @ 3:b13f7ba85697 draft
Update ariba_database_builder.py
| author | thanhlv |
|---|---|
| date | Mon, 14 Jan 2019 07:01:15 -0500 |
| parents | a8bb47cc7625 |
| children | be46816110b4 |
comparison
equal
deleted
inserted
replaced
| 2:204f94dc1c2c | 3:b13f7ba85697 |
|---|---|
| 13 params = json.loads(open(args.output).read()) | 13 params = json.loads(open(args.output).read()) |
| 14 target_directory = params['output_data'][0]['extra_files_path'] | 14 target_directory = params['output_data'][0]['extra_files_path'] |
| 15 os.mkdir(target_directory) | 15 os.mkdir(target_directory) |
| 16 data_manager_entry = [] | 16 data_manager_entry = [] |
| 17 for db in db_folder: | 17 for db in db_folder: |
| 18 # print("Current: ".format(os.path.join(output_path, d))) | 18 print("Current: ".format(os.path.join(output_path, d))) |
| 19 # print("Target: {}".format(target_directory)) | 19 print("Target: {}".format(target_directory)) |
| 20 shutil.move(os.path.join(output_path, d), os.path.join(target_directory, d)) | 20 shutil.move(os.path.join(output_path, d), os.path.join(target_directory, d)) |
| 21 data_manager_entry.append(dict(value=db.lower(), | 21 data_manager_entry.append(dict(value=db.lower(), |
| 22 name=db, | 22 name=db, |
| 23 path=target_directory) | 23 path=target_directory) |
| 24 ) | 24 ) |
