mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Авто-обновление.
This commit is contained in:
parent
40fde0b111
commit
9b032e48f2
10
main.py
10
main.py
@ -3,6 +3,16 @@ from threading import Thread
|
|||||||
|
|
||||||
# Здесь общий запуск всех файлов и команд
|
# Здесь общий запуск всех файлов и команд
|
||||||
|
|
||||||
|
# Проверка обновлений
|
||||||
|
from sys import argv
|
||||||
|
if len(argv) == 1:
|
||||||
|
print("Проверка обновлений...")
|
||||||
|
system("git pull")
|
||||||
|
print("Перезагрузка скрипта...")
|
||||||
|
system("python main.py updated")
|
||||||
|
exit()
|
||||||
|
print("\nУспешно перезагружено!")
|
||||||
|
|
||||||
'''
|
'''
|
||||||
# Порт для приёма всяких запросов
|
# Порт для приёма всяких запросов
|
||||||
def reverse_proxy():
|
def reverse_proxy():
|
||||||
|
Loading…
Reference in New Issue
Block a user