Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
612183e
1
Parent(s):
93fbf39
22
Browse files- .gitignore +1 -0
- utils/repo_utils.py +3 -2
.gitignore
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
/models/
|
| 4 |
/repos/
|
| 5 |
/videox_fun/
|
|
|
|
| 6 |
|
| 7 |
# Packages
|
| 8 |
*.egg
|
|
|
|
| 3 |
/models/
|
| 4 |
/repos/
|
| 5 |
/videox_fun/
|
| 6 |
+
/config/
|
| 7 |
|
| 8 |
# Packages
|
| 9 |
*.egg
|
utils/repo_utils.py
CHANGED
|
@@ -52,8 +52,9 @@ def move_folder(source_path, destination_path):
|
|
| 52 |
|
| 53 |
|
| 54 |
def convert_path(mypath):
|
| 55 |
-
|
| 56 |
-
|
|
|
|
| 57 |
print(mypath)
|
| 58 |
print(converted_path)
|
| 59 |
return converted_path
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
def convert_path(mypath):
|
| 55 |
+
home_dir = os.path.expanduser("~")
|
| 56 |
+
# app_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
| 57 |
+
converted_path = os.path.join(home_dir, mypath)
|
| 58 |
print(mypath)
|
| 59 |
print(converted_path)
|
| 60 |
return converted_path
|