Fix Wrong Imports and typo

This commit is contained in:
sepehr 2024-12-16 13:04:30 +03:00
parent 58b0ce0c1c
commit a26bd6ae55
4 changed files with 9 additions and 8 deletions

View file

@ -80,14 +80,13 @@ def extract_zip_reload(filename,dst):
p_status = p.wait()
#install requirments
try:
from libs import utilpro
ISPRO=True
proreqs="/app/py/pro-reqs.txt"
with open(proreqs, "r") as f:
for line in f:
import_or_install(line.strip())
log.info("Installed {}".format(line.strip()))
time.sleep(1)
time.sleep(3)
except ImportError:
pass
reqs="/app/reqs.txt"
@ -101,8 +100,6 @@ def extract_zip_reload(filename,dst):
#touch server reload file /app/reload
Path('/app/reload').touch()
def main():
while True:
try: