Compare commits
6
Commits
746f6da5d5
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47ca978650 | ||
|
|
969ef8b270 | ||
|
|
cab4498410 | ||
|
|
ef9cfc2511 | ||
|
|
27e1bc2b7a | ||
|
|
b4227c1adc |
@@ -13,8 +13,8 @@ jobs:
|
|||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
- run: echo "Install dependencies."
|
- run: echo "Install dependencies."
|
||||||
- run: apt update
|
- run: apt update
|
||||||
- run: apt install python3
|
- run: apt install python3 python3-pip python3-venv -y
|
||||||
- run: python3 -m pip install -r requirements.txt
|
- run: python3 -m pip install -r requirements.txt
|
||||||
- run: "Check if starts correcly. Syntax check."
|
- run: echo "Check if starts correcly. Syntax check."
|
||||||
- run: ./pdf2text .
|
- run: ./pdf2text .
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
- run: echo "This job's status is ${{ job.status }}."
|
||||||
|
|||||||
@@ -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"):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user