Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
59e15ae
1
Parent(s):
2e69a7c
- entry_with_update.py +5 -2
entry_with_update.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
-
|
|
|
|
|
|
|
2 |
|
|
|
3 |
import pygit2
|
4 |
-
import os
|
5 |
|
6 |
repo = pygit2.Repository(os.path.abspath(os.path.dirname(__file__)))
|
7 |
|
|
|
1 |
+
import os
|
2 |
+
import sys
|
3 |
+
|
4 |
+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
5 |
|
6 |
+
try:
|
7 |
import pygit2
|
|
|
8 |
|
9 |
repo = pygit2.Repository(os.path.abspath(os.path.dirname(__file__)))
|
10 |
|