imseldrith commited on
Commit
038f008
·
1 Parent(s): 5493356

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +5 -7
run.py CHANGED
@@ -1,11 +1,9 @@
1
  import subprocess
2
 
3
  def setup_imaginepy():
4
- subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"])
5
- subprocess.run(["cd", "Imaginepy"])
6
- subprocess.run(["python", "-m", "venv", "env"])
7
- subprocess.run(["source", "env/bin/activate"])
8
- subprocess.run(["python", "setup.py", "install"])
9
- subprocess.run(['cd',".."])
10
  setup_imaginepy()
11
- subprocess.run(["python","app.py"])
 
1
  import subprocess
2
 
3
  def setup_imaginepy():
4
+ #subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"])
5
+ subprocess.Popen("git clone https://github.com/ItsCEED/Imaginepy && cd Imaginepy && python -m venv env && source env/bin/activate && python setup.py install", shell=True)
6
+ subprocess.run(["cd", ".."])
7
+
 
 
8
  setup_imaginepy()
9
+ subprocess.run(["python", "app.py"])