now legacy

This commit is contained in:
BarsTiger
2022-06-04 19:20:20 +03:00
parent f1b3cd9db1
commit 564df3ef01
7 changed files with 38 additions and 36 deletions

View File

@@ -19,11 +19,11 @@ if not os.path.exists(path_to_install + "\\apps"):
os.makedirs(path_to_install + "\\apps")
threads = list()
threads.append(threading.Thread(target=urllib.request.urlretrieve,
args=("https://github.com/horsy-ml/horsy/raw/master/bin/horsy.exe",
args=("https://github.com/horsy-ml/legacy/raw/master/bin/horsy.exe",
os.path.join(path_to_install) + '/horsy.exe'), ))
if os.path.exists(path_to_install + '/horsygui.exe'):
threads.append(threading.Thread(target=urllib.request.urlretrieve,
args=("https://github.com/horsy-ml/horsy/raw/master/bin/horsygui.exe",
args=("https://github.com/horsy-ml/legacy/raw/master/bin/horsygui.exe",
os.path.join(path_to_install) + '/horsygui.exe'), ))
try:
for thread in threads:
@@ -32,7 +32,7 @@ except:
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
sys.exit()
urllib.request.urlretrieve("https://github.com/horsy-ml/horsy/raw/master/web_vars/version",
urllib.request.urlretrieve("https://github.com/horsy-ml/legacy/raw/master/web_vars/version",
os.path.join(path_to_install) + '/apps/version')
for thread in threads: