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], )