Skip to content

Commit

Permalink
correct output image path
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Jul 29, 2024
1 parent 72a3f8c commit 98b6f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellpack/autopack/writers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,15 @@ def add_images(self, header, image_text, filepaths):
self.report_md.new_line(
self.report_md.new_inline_image(
text=image_text[i],
path=str(self.output_image_location / filepaths[i]),
path=str(self.output_image_location / filepaths[i].name),
)
)
else:
for i in range(len(filepaths)):
self.report_md.new_line(
self.report_md.new_inline_image(
text=image_text[0],
path=str(self.output_image_location / filepaths[i]),
path=str(self.output_image_location / filepaths[i].name),
)
)
self.report_md.new_line("")
Expand Down

0 comments on commit 98b6f8d

Please sign in to comment.