From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 3 Jan 2023 21:05:44 +0000 (-0800) Subject: Small tweak to use the existing tempdir instead of a new one X-Git-Tag: v1.12.0-beta.rc0~62^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2302%2Fhead;p=thirdparty%2Fpaperless-ngx.git Small tweak to use the existing tempdir instead of a new one --- diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index 8e0bac5a77..14068cb266 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -142,7 +142,7 @@ class RasterisedDocumentParser(DocumentParser): text = None with tempfile.NamedTemporaryFile( mode="w+", - dir=settings.SCRATCH_DIR, + dir=self.tempdir, ) as tmp: subprocess.run( [