Spaces:
Sleeping
Sleeping
jhj0517
commited on
Commit
•
526c234
1
Parent(s):
602a280
Add utils
Browse files- modules/utils.py +8 -0
modules/utils.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
|
4 |
+
def open_folder(folder_path: str):
|
5 |
+
if os.path.exists(folder_path):
|
6 |
+
os.system(f'start "" "{folder_path}"')
|
7 |
+
else:
|
8 |
+
print(f"The folder '{folder_path}' does not exist.")
|