Windows compatibility

This commit is contained in:
2026-08-20 12:01:31 +02:00
parent 7c366a9ca4
commit ac4ab782b2
20 changed files with 634 additions and 134 deletions
+4
View File
@@ -8,6 +8,8 @@ import shutil
from pathlib import Path
from collections import defaultdict
from utils import read_all_labels
carreau = 1000 // 38
@@ -208,6 +210,8 @@ if __name__ == "__main__":
print(f"Error: {input_arg} is not a valid file or directory.")
sys.exit(1)
read_all_labels(base_dir)
for pdf_path in pdf_files:
json_path = pdf_path.with_suffix(".json")
# print("Debug :", json_path)