Skip to content

Commit

Permalink
fix: CLI compatibility with python 3.10 and 3.11
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm committed Sep 16, 2024
1 parent 34b2772 commit 26062b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docling/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def convert(
)
raise typer.Abort()
elif source.is_dir():
input_doc_paths.extend(list(source.glob("**/*.pdf", case_sensitive=False)))
input_doc_paths.extend(list(source.glob("**/*.pdf")))
input_doc_paths.extend(list(source.glob("**/*.PDF")))
else:
input_doc_paths.append(source)

Expand Down

0 comments on commit 26062b3

Please sign in to comment.