Skip to content

Commit 914a010

Browse files
kbabertsky
andauthored
ocrd_cli: no need to check fileGrp dir exists
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
1 parent 706c864 commit 914a010

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/dinglehopper/ocrd_cli.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,11 @@ def process_page_file(self, *input_files: Optional[OcrdFileType]) -> None:
4545
page_id = gt_file.pageId
4646

4747
file_id = make_file_id(ocr_file, self.output_file_grp)
48-
report_prefix = os.path.join(self.output_file_grp, file_id)
49-
50-
# Process the files
51-
try:
52-
os.mkdir(self.output_file_grp)
53-
except FileExistsError:
54-
pass
5548
cli_process(
5649
gt_file.local_filename,
5750
ocr_file.local_filename,
58-
report_prefix,
51+
file_id,
52+
self.output_file_grp,
5953
metrics=metrics,
6054
textequiv_level=textequiv_level,
6155
)

0 commit comments

Comments
 (0)