E-slam commited on
Commit
c688c2a
·
verified ·
1 Parent(s): d5ae3d6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -18
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
- # with open("index.py", "r") as file:
49
- # code = file.read()
50
- # exec(code)
 
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)