我正在使用不带虚拟环境的烧瓶后端在Heroku上部署我的应用程序。并获得[Errno 13] Permission denied: 'scripts/real_time_object_detection.py'
在使用subprocess.call(['real_time_object_detection'])
我很困惑,因为没有可用的解决方案
@app.route('/theft.html',methods=['GET','POST'])
def theft():
flag=0
if request.method=="POST":
try:
flag=1
process=subprocess.call(['scripts/real_time_object_detection.py'])
return render_template("Theft.html")
except Exception as e:
return str(e)
if (flag!=1):
return render_template("Theft.html")```
i am getting [Errno 13] Permission denied: 'scripts/real_time_object_detection.py' but i want my script to run