mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Small tweak to use the existing tempdir instead of a new one
This commit is contained in:
parent
a185f94c4b
commit
cd42d17ffb
@ -142,7 +142,7 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
text = None
|
text = None
|
||||||
with tempfile.NamedTemporaryFile(
|
with tempfile.NamedTemporaryFile(
|
||||||
mode="w+",
|
mode="w+",
|
||||||
dir=settings.SCRATCH_DIR,
|
dir=self.tempdir,
|
||||||
) as tmp:
|
) as tmp:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user