9374: Fix uses of "this" as receiver name.
[arvados.git] / crunch_scripts / file-select
1 #!/usr/bin/env python
2
3 import arvados
4 import os
5 import re
6
7 this_job = arvados.current_job()
8 this_task = arvados.current_task()
9 this_job_input = this_job['script_parameters']['input']
10 manifest_text = ""
11 for f in arvados.CollectionReader(this_job_input).all_files():
12     if f.name() in this_job['script_parameters']['names']:
13         manifest_text += f.as_manifest()
14
15 this_task.set_output(arvados.Keep.put(manifest_text))