I have deployed my Flask python application on Heroku. The problem is that in one line of my python code I must open an HTML file (where some javascript gets executed).
Obviously, it locally works in my mac, but in Heroku it doesn't' seem to recognise the 'open' command, in fact I get:
/bin/sh: 1: open: not found
This is the python code in my script:
p = Popen('open last.html', shell=True)
Is there a way to solve this and get the HTML file to be opened? Thanks