I am making an API to launch apps from my phone to my pc but when I access the route to the API the page won't load until the program launched with os.system()
is closed
Here is my code:
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
os.system("notepad")
return "<p>Hello, World!<br>Launching Notepad!</p>"
Thanks in advance for the help! Ps.: I am new to flask and APIs in general.