Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

open a python script on click flask

@app.route('/run-script')
def run_script():
   result = subprocess.check_output("python main.py", shell=True)
   return render_template('results.html', **locals())
 
PREVIOUS NEXT
Tagged: #open #python #script #click #flask
ADD COMMENT
Topic
Name
9+2 =