mirror of
https://github.com/dobin/avred
synced 2026-06-08 13:54:13 +00:00
fix: make subprocess work in windows
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user