Skip to content

Commit

Permalink
fix: add quotes to each item of the wait_for_files list (snakemake#1160)
Browse files Browse the repository at this point in the history
* Add quotes to tmp dir in wait-for-file options

* Add quotes to each item of the wait_for_files list

* Add quotes to the wait_for_files_file path

* Improve quoting strategy

* Format following Black code style

Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
  • Loading branch information
2 people authored and pvandyken committed Nov 15, 2021
1 parent 2c3c6da commit f03a5ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snakemake/executors/__init__.py
Expand Up @@ -789,11 +789,12 @@ def format_job(self, pattern, job, **kwargs):

waitfiles_parameter = format(
"--wait-for-files-file {wait_for_files_file}",
wait_for_files_file=wait_for_files_file,
wait_for_files_file=repr(wait_for_files_file),
)
else:
waitfiles_parameter = format(
"--wait-for-files {wait_for_files}", wait_for_files=wait_for_files
"--wait-for-files {wait_for_files}",
wait_for_files=[repr(f) for f in wait_for_files],
)

format_p = partial(
Expand Down

0 comments on commit f03a5ee

Please sign in to comment.