import subprocess import os def setup_imaginepy(): subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"]) subprocess.Popen("cd Imaginepy && python -m venv env && source env/bin/activate && python setup.py install", shell=True) os.chdir("..") setup_imaginepy() subprocess.run(["python", "app.py"])