Skip to content

Commit 65bf793

Browse files
committed
change temp file handling
1 parent 50a676e commit 65bf793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsyncr_server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def format_failure(failure):
5959
f"Must provide one of the following: {', '.join(MODEL_CHOICES)}",
6060
)
6161

62-
with tempfile.TemporaryDirectory() as tmpdirname:
62+
with tempfile.mkdtemp() as tmpdirname:
6363
completed_process = subprocess.run(
6464
["Rscript", R_SCRIPT_PATH, INPUT_FILE_PATH, model_type, tmpdirname],
6565
)

0 commit comments

Comments
 (0)