Skip to content

Commit

Permalink
fix: add quotes to each item of the wait_for_files list (#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
fdchevalier and johanneskoester committed Oct 21, 2021
1 parent ebfe00f commit 72856ed
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 72856ed

Please sign in to comment.