Rudimentary support for --refaire
This commit is contained in:
+2
-1
@@ -150,7 +150,7 @@ def split_an_interro(base_dir, input_pdf, coords_list):
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python scrit.py <directory or pdf_file>")
|
||||
print("Usage: python script.py <directory or pdf_file>")
|
||||
sys.exit(1)
|
||||
|
||||
input_arg = Path(sys.argv[1])
|
||||
@@ -167,6 +167,7 @@ if __name__ == "__main__":
|
||||
|
||||
for pdf_path in pdf_files:
|
||||
json_path = pdf_path.with_suffix(".json")
|
||||
# print("Debug :", json_path)
|
||||
if json_path.exists():
|
||||
(name, coords) = decode_json(pdf_path)
|
||||
print("Decoded name : ", name)
|
||||
|
||||
Reference in New Issue
Block a user