Spaces:
Running
Running
imseldrith
commited on
Commit
·
038f008
1
Parent(s):
5493356
Update run.py
Browse files
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.
|
6 |
-
subprocess.run(["
|
7 |
-
|
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"])
|