Spaces:
Sleeping
Sleeping
Lukas Folle
commited on
Commit
·
37dca1b
1
Parent(s):
70583d3
switched to gitpython
Browse files- entrypoint.py +6 -5
entrypoint.py
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
import subprocess
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
"
|
| 8 |
-
f"https://oauth2:{os.getenv('HANDKIGIT5')}@git5.cs.fau.de/folle/hand-ki-model.git",
|
| 9 |
-
use_auth_token=os.getenv(""),
|
| 10 |
)
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|
|
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
import subprocess
|
| 4 |
+
import git
|
| 5 |
|
| 6 |
+
repo_url = (
|
| 7 |
+
f"https://oauth2:{os.getenv('HANDKIGIT5')}@git5.cs.fau.de/folle/hand-ki-model.git"
|
|
|
|
|
|
|
| 8 |
)
|
| 9 |
+
repo_path = "repos/hand-ki-model"
|
| 10 |
+
if not os.path.exists(repo_path):
|
| 11 |
+
git.Repo.clone_from(repo_url, repo_path)
|
| 12 |
|
| 13 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|