fix: CLI compatibility with python 3.10 and 3.11 (#79)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
34b2772a2e
commit
2870fdc857
@ -174,7 +174,8 @@ def convert(
|
|||||||
)
|
)
|
||||||
raise typer.Abort()
|
raise typer.Abort()
|
||||||
elif source.is_dir():
|
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:
|
else:
|
||||||
input_doc_paths.append(source)
|
input_doc_paths.append(source)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user