Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Small tweak to use the existing tempdir instead of a new one

Trenton H1e4923835b7e
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py
index 8e0bac5a7..14068cb26 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(
[