Title explains it mostly. I am trying to call another python script from a python script. I am using:
@app.route('/lemay', methods=['POST'])
def view_do_something():
if request.method == 'POST':
#your database process here
subprocess.call(['python', 'send_email_lemay.py'])
return "OK"
When I run my flask server and send the post request I get an error. I am not sure why its not working? anybody got any ideas?
Thanks, DM123