Spaces:
Sleeping
Sleeping
Eslam Magdy
commited on
Update main.py
Browse files
main.py
CHANGED
|
@@ -3,15 +3,6 @@ import time
|
|
| 3 |
import shutil
|
| 4 |
import subprocess
|
| 5 |
|
| 6 |
-
# command = ["pip", "install", "flet==0.23.2"]
|
| 7 |
-
|
| 8 |
-
# subprocess.run(command, check=True)
|
| 9 |
-
|
| 10 |
-
# command = ["pip", "install", "flet-fastapi==0.19.0", "--no-deps"]
|
| 11 |
-
|
| 12 |
-
# subprocess.run(command, check=True)
|
| 13 |
-
|
| 14 |
-
|
| 15 |
gh_token = os.getenv("gh_token")
|
| 16 |
|
| 17 |
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/ZP-Dashboard.git"
|
|
@@ -38,13 +29,7 @@ for item in os.listdir(source_dir):
|
|
| 38 |
shutil.move(s, d)
|
| 39 |
|
| 40 |
os.rmdir(source_dir)
|
| 41 |
-
|
| 42 |
-
directory = "."
|
| 43 |
-
|
| 44 |
-
# List all files and directories
|
| 45 |
-
for item in os.listdir(directory):
|
| 46 |
-
print(item)
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 3 |
import shutil
|
| 4 |
import subprocess
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
gh_token = os.getenv("gh_token")
|
| 7 |
|
| 8 |
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/ZP-Dashboard.git"
|
|
|
|
| 29 |
shutil.move(s, d)
|
| 30 |
|
| 31 |
os.rmdir(source_dir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
with open("index.py", "r") as file:
|
| 34 |
+
code = file.read()
|
| 35 |
+
exec(code)
|