Skip to content

Commit f93332b

Browse files
authored
fix: artifacts dir double stem (#75)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 9fc9757 commit f93332b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docling_core/types/doc/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ def _get_output_paths(
20372037
if artifacts_dir is None:
20382038
# Remove the extension and add '_pictures'
20392039
artifacts_dir = filename.with_suffix("")
2040-
artifacts_dir = artifacts_dir.with_name(artifacts_dir.stem + "_artifacts")
2040+
artifacts_dir = artifacts_dir.with_name(artifacts_dir.name + "_artifacts")
20412041
if artifacts_dir.is_absolute():
20422042
reference_path = None
20432043
else:

0 commit comments

Comments
 (0)