Skip to content

Commit

Permalink
fix: artifacts dir double stem (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm authored Nov 27, 2024
1 parent 9fc9757 commit f93332b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docling_core/types/doc/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ def _get_output_paths(
if artifacts_dir is None:
# Remove the extension and add '_pictures'
artifacts_dir = filename.with_suffix("")
artifacts_dir = artifacts_dir.with_name(artifacts_dir.stem + "_artifacts")
artifacts_dir = artifacts_dir.with_name(artifacts_dir.name + "_artifacts")
if artifacts_dir.is_absolute():
reference_path = None
else:
Expand Down

0 comments on commit f93332b

Please sign in to comment.