From b29d77a465e6e16f9dc48b66b19bd3296e870329 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 15 Mar 2022 10:39:08 +0100 Subject: [PATCH] Switched to local on disk tmpfile --- swash/processing/read_swash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swash/processing/read_swash.py b/swash/processing/read_swash.py index 26a3014..722ffec 100644 --- a/swash/processing/read_swash.py +++ b/swash/processing/read_swash.py @@ -14,7 +14,7 @@ class ReadSwash: @classmethod def read_nohead(cls, path): - with tempfile.SpooledTemporaryFile() as tmpfile: + with tempfile.NamedTemporaryFile(dir=path.parent) as tmpfile: with open(path) as file: subprocess.run(("tr", "-d", "\n"), stdin=file, stdout=tmpfile) tmpfile.seek(0)