the path for reading the THIRD-PARTY file has been fixed

This commit is contained in:
Sergey Palcheh
2025-09-11 15:20:09 +06:00
parent b98c6e5408
commit 85bd5fdf5d
2 changed files with 6 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ class Var:
WH_ICON_PATH = os.environ.get("WH_ICON_PATH")
LICENSE_FILE = os.environ.get("LICENSE_FILE")
LICENSE_AGREEMENT_FILE = os.environ.get("AGREEMENT")
THIRD_PARTY_FILE = os.environ.get("THIRD_PARTY_FILE")
class DependencyManager:
"""Класс для управления проверкой и установкой системных зависимостей."""
@@ -2819,8 +2820,8 @@ class WineHelperGUI(QMainWindow):
# Читаем и парсим файл THIRD-PARTY
third_party_html = ""
third_party_file_path = os.path.join(Var.DATA_PATH, "THIRD-PARTY")
if os.path.exists(third_party_file_path):
third_party_file_path = Var.THIRD_PARTY_FILE
if third_party_file_path and os.path.exists(third_party_file_path):
with open(third_party_file_path, 'r', encoding='utf-8') as f_tp:
third_party_content = f_tp.read()