From 8072ddd0fc362a8e0978c0338d849d6e49ea2b8a Mon Sep 17 00:00:00 2001 From: DokoGen Date: Mon, 3 Aug 2026 09:29:16 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20?= =?UTF-8?q?=D0=B8=D0=B7=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B8=20(py=20main.py)?= =?UTF-8?q?=20=E2=80=94=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=D1=81=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit editor.py использовал 'from .core import', который не работает при запуске скриптом. Заменено на обычный 'from core import'. --- editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.py b/editor.py index 0a59801..4e9eeaa 100644 --- a/editor.py +++ b/editor.py @@ -15,7 +15,7 @@ import os import json from typing import Dict, List, Optional -from .core import ( +from core import ( list_profiles, load_profile, load_settings, save_settings, scan_excel, extract_data, ) @@ -345,7 +345,7 @@ class ImportMapperWindow: messagebox.showerror("Ошибка", data['error']) return - from .core import EXPORT_DIR + from core import EXPORT_DIR os.makedirs(EXPORT_DIR, exist_ok=True) out_path = os.path.join(EXPORT_DIR, f"export_{self.profile['id']}.json") with open(out_path, 'w', encoding='utf-8') as f: