Imagine / run.py
imseldrith's picture
Update run.py
dbea941
raw
history blame
356 Bytes
import subprocess
import os
def setup_imaginepy():
subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"])
os.chdir('Imaginepy')
subprocess.run("python -m venv env && source env/bin/activate && python setup.py install", shell=True)
print("Done")
#os.chdir("..")
setup_imaginepy()
subprocess.run(["python", "app.py"])