chore: remove interactive confirmation prompt from pdf2text conversion script
pdf2text test / Compile (push) Failing after 13s

This commit is contained in:
2024-11-22 19:55:08 +00:00
parent 969ef8b270
commit 47ca978650
-3
View File
@@ -25,9 +25,6 @@ if not source_path.exists():
raise Exception(f"{source_path.absolute()} does not exist.") raise Exception(f"{source_path.absolute()} does not exist.")
print("This script will convert all your pdf files to txt files in the same directory.") print("This script will convert all your pdf files to txt files in the same directory.")
if input("Continue? [Y/n]: ").strip().lower() in ["n", "no"]:
print("Operation cancelled.")
exit(0)
for file in pathlib.Path(source_path).glob("*.pdf"): for file in pathlib.Path(source_path).glob("*.pdf"):