the path for reading the THIRD-PARTY file has been fixed
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user