From a142e339200ba863f1819bb42e4d485ff4eefff8 Mon Sep 17 00:00:00 2001 From: Dobin Date: Thu, 2 Mar 2023 10:04:31 +0100 Subject: [PATCH] fix: make subprocess work in windows --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 4ea21d3..53dab93 100644 --- a/app/views.py +++ b/app/views.py @@ -145,7 +145,7 @@ def upload_file(): filepath = os.path.join(current_app.config['UPLOAD_FOLDER'], filename) file.save(filepath) - subprocess.Popen(["./avred.py", "--server", "amsi", "--file", filepath, "--logtofile" ]) + subprocess.Popen(["./avred.py", "--server", "amsi", "--file", filepath, "--logtofile" ], shell=True) return redirect(url_for('views.view_file', filename=filename))