Skip to content

Commit

Permalink
Don't include target directory in archive unpack custody outputs (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
pydsigner committed Nov 10, 2023
1 parent d075637 commit 7eec17f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/anchovy/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ def __call__(self, path: Path, output_paths: list[Path]):

first = output_paths[0]
shutil.unpack_archive(path, first, format=self.archive_format)
all_outputs = [first]
all_outputs.extend(self.context.find_inputs(first))
all_outputs = list(self.context.find_inputs(first))
for o_path in output_paths[1:]:
shutil.copytree(first, o_path, dirs_exist_ok=True)
all_outputs.append(o_path)
all_outputs.extend(self.context.find_inputs(o_path))
return [path], all_outputs

0 comments on commit 7eec17f

Please sign in to comment.