From c42183353d70680149ef3687b9fa39b0f74b0b46 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 8 Apr 2023 15:09:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B8=D0=B5=D1=80=D0=B0=D1=80=D1=85=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=BE=D0=B2=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index c322f3b..665a756 100755 --- a/hlna.py +++ b/hlna.py @@ -51,12 +51,13 @@ def create_dir(directory): """Проверка и создание директории""" if not os.path.exists(directory): os.mkdir(directory) + if not os.path.exists(f"{home_dir}/.config/hlna/"): + os.chdir(f"{home_dir}/.config/") + os.mkdir("hlna") if not os.path.exists(f"{home_dir}/.config/hlna/maps"): - os.chdir(f"{home_dir}/.config/hlna/") os.chdir(f"{home_dir}/.config/hlna/") os.mkdir("maps") - def check_int(number=""): """Проверка на ввод числа""" while True: