Skip to content

Commit

Permalink
Remove uneeded TESSDATA_PREFIX setting in container
Browse files Browse the repository at this point in the history
The container image does not need the TESSDATA_PREFIX env variable since
its PyMuPDF version is new enough to support `tessdata` as an argument
when calling the PyMuPDF tesseract method.
  • Loading branch information
deeplow committed Feb 7, 2024
1 parent 6006bee commit 879fca6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dangerzone/isolation_provider/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ def pixels_to_pdf(
"-v",
f"{tempdir}:/safezone:Z",
"-e",
"TESSDATA_PREFIX=/usr/share/tessdata",
"-e",
f"OCR={0 if ocr_lang is None else 1}",
"-e",
f"OCR_LANGUAGE={ocr_lang}",
Expand Down

0 comments on commit 879fca6

Please sign in to comment.