initial module: init_wine

This commit is contained in:
Mikhail Tergoev
2025-03-07 01:57:53 +03:00
parent 3a57048f49
commit 9dc6144ffd
2 changed files with 28 additions and 9 deletions

20
modules/init_wine.py Normal file
View File

@ -0,0 +1,20 @@
from .log import *
from .files_worker import *
from .config_parser import *
def init_wine(dist_path):
used_wine_upper = var("used_wine").upper()
if used_wine_upper != "SYSTEM":
if used_wine_upper == "WINE_LG":
used_wine = var("default_wine")
elif used_wine_upper == "PROTON_LG":
used_wine = var("default_proton")
log.info(f"used wine: {used_wine}")
wine_path = dist_path + "/" + used_wine
log.info(wine_path)
else:
# TODO: добавить системный вайн
...