From aa591112ff6ff6b3f4ed8c17247df814bcc7c981 Mon Sep 17 00:00:00 2001 From: Sergey Palcheh Date: Thu, 11 Sep 2025 11:12:17 +0600 Subject: [PATCH] simplifying the definition of the path to dependencies.sh --- winehelper_gui.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/winehelper_gui.py b/winehelper_gui.py index 324e4cb..a3ea958 100644 --- a/winehelper_gui.py +++ b/winehelper_gui.py @@ -42,14 +42,10 @@ class DependencyManager: def _get_dependencies_path(self): """Определяет и возвращает путь к скрипту dependencies.sh.""" - if Var.DATA_PATH: - base_path = Var.DATA_PATH - elif Var.RUN_SCRIPT and os.path.exists(Var.RUN_SCRIPT): - base_path = os.path.dirname(Var.RUN_SCRIPT) - else: + if not Var.DATA_PATH: return None - return os.path.join(base_path, 'dependencies.sh') + return os.path.join(Var.DATA_PATH, 'dependencies.sh') def _calculate_file_hash(self): """Вычисляет хэш SHA256 файла зависимостей."""