From 65bf7933f1f39a3cd1f83d9eeb3307ceb109f2c8 Mon Sep 17 00:00:00 2001 From: kflemin <2205659+kflemin@users.noreply.github.com> Date: Mon, 12 May 2025 12:25:46 -0600 Subject: [PATCH] change temp file handling --- bsyncr_server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsyncr_server/main.py b/bsyncr_server/main.py index d5bd2fc..ff866d3 100644 --- a/bsyncr_server/main.py +++ b/bsyncr_server/main.py @@ -59,7 +59,7 @@ def format_failure(failure): f"Must provide one of the following: {', '.join(MODEL_CHOICES)}", ) - with tempfile.TemporaryDirectory() as tmpdirname: + with tempfile.mkdtemp() as tmpdirname: completed_process = subprocess.run( ["Rscript", R_SCRIPT_PATH, INPUT_FILE_PATH, model_type, tmpdirname], )