Skip to content

Commit 0eda59e

Browse files
Note naive repo_root definition
Co-authored-by: Jover Lee <joverlee521@gmail.com>
1 parent 0ea01d6 commit 0eda59e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

snakemake/config.smk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ else:
3434
Path(workflow.basedir),
3535
]
3636

37+
# This should work for majority of workflows, but we could consider doing a
38+
# more thorough search for the nextstrain-pathogen.yaml. This would likely
39+
# replicate how CLI searches for the root.¹
40+
# ¹ <https://github.com/nextstrain/cli/blob/d5e184c5/nextstrain/cli/command/build.py#L413-L420>
3741
repo_root = Path(workflow.basedir) / ".."
3842
if (repo_root / "nextstrain-pathogen.yaml").is_file():
3943
search_paths.extend([

0 commit comments

Comments
 (0)