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

Update run.py

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