E-slam's picture
Update main.py
f6b388b verified
raw
history blame
445 Bytes
import subprocess
import os
import time
#subprocess.call(["pip", "install", "flet==0.23.2","--ignore-installed"])
#subprocess.call(["pip", "install", "flet_fastapi==0.19.0"])
gh_token = os.getenv("gh_token")
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/Adel_Flet_Demo.git"
os.system(f"git clone {url_with_token}")
time.sleep(10)
with open("Adel_Flet_Demo/main.py", "r") as file:
code = file.read()
exec(code)