From a5771a5e33308dc3c1f964040b6edf92f72c3f9f Mon Sep 17 00:00:00 2001 From: none Date: Sat, 24 Feb 2024 18:34:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=B0=D1=86=D0=B8=D1=8F=20=D1=81?= =?UTF-8?q?=D0=B0=D0=B9=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site_creator.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/site_creator.py b/site_creator.py index bba6787..7e819f3 100644 --- a/site_creator.py +++ b/site_creator.py @@ -9,6 +9,8 @@ from network import * print("(1) Создать сайт") print("(2) Обновить сайт") print("(3) Сменить тип") +print("Enter для просто публикации.") + op = input(">> ") if op == "1": @@ -98,6 +100,13 @@ elif op == "3": exit() +elif op == "": + domain = input("\nДомен сайта: ") + if not os.path.exists(f"mysites/{domain}"): + print("Не существует такого сайта.") + exit() + pub = "y" + # Копируем файлы из mysites в cached try: @@ -110,9 +119,9 @@ copyfile(f"mysites/{domain}.sig", f"cached/{domain}.sig") copyfile(f"mysites/{domain}.zip", f"cached/{domain}.zip") - -print("Опубликовать сайт?") -pub = input("y/n >> ") +if op != "": + print("Опубликовать сайт?") + pub = input("y/n >> ") if pub == "n": exit()