fix: make subprocess work in windows

This commit is contained in:
2023-03-02 10:04:31 +01:00
parent 57844f9111
commit a142e33920
+1 -1
View File
@@ -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))