From e0b10c5e4057e08f8dee6870a4fd94b528f52eda Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 2 Apr 2025 11:46:18 +0300 Subject: [PATCH] doit: Remove tessdata dir from targets Remove the tesseract data dir from the doit targets, else we encounter the following error: Traceback (most recent call last): [...] File "[...]/Library/Caches/pypoetry/virtualenvs/dangerzone-52Yr5wv_-py3.11/lib/python3.11/site-packages/doit/dependency.py", line 39, in get_file_md5 with open(path, 'rb') as file_data: ^^^^^^^^^^^^^^^^ IsADirectoryError: [Errno 21] Is a directory: 'share/tessdata' --- dodo.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dodo.py b/dodo.py index f38700f..bd2b3a1 100644 --- a/dodo.py +++ b/dodo.py @@ -43,7 +43,6 @@ def list_language_data(): tessdata_dir = Path("share") / "tessdata" langs = json.loads(open(tessdata_dir.parent / "ocr-languages.json").read()).values() targets = [tessdata_dir / f"{lang}.traineddata" for lang in langs] - targets.append(tessdata_dir) return targets