Skip to content

Commit

Permalink
fix: multiext prefix computation in case it is used within a module t…
Browse files Browse the repository at this point in the history
…hat defines an additional prefix (#1609)
  • Loading branch information
johanneskoester committed May 2, 2022
1 parent 16b78ff commit fc6dfc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snakemake/path_modifier.py
Expand Up @@ -47,6 +47,10 @@ def modify(self, path, property=None):
if not hasattr(modified_path, "flags"):
modified_path = AnnotatedString(modified_path)
modified_path.flags.update(path.flags)
if is_flagged(modified_path, "multiext"):
modified_path.flags["multiext"] = self.apply_default_remote(
self.replace_prefix(modified_path.flags["multiext"], property)
)
# Flag the path as modified and return.
modified_path = flag(modified_path, PATH_MODIFIER_FLAG, self)
return modified_path
Expand Down

0 comments on commit fc6dfc6

Please sign in to comment.