From 9b032e48f2caf86642ca07c8bed6386374cbfcb4 Mon Sep 17 00:00:00 2001 From: none Date: Mon, 19 Feb 2024 19:49:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE-=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.py b/main.py index b0325a6..ca1f775 100644 --- a/main.py +++ b/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():