mirror of
https://github.com/aclist/dztui.git
synced 2026-08-27 02:07:18 +02:00
21 lines
478 B
Python
21 lines
478 B
Python
import logging
|
|
|
|
from pathlib import Path
|
|
|
|
from dzgui.api.steam import get_app_path
|
|
from dzgui.config.query import lookup
|
|
from dzgui.const.constants import APPID_DAYZ, APP_NAME
|
|
from dzgui.const.enum import Preferences
|
|
|
|
|
|
logger = logging.getLogger(APP_NAME)
|
|
|
|
|
|
def is_dayz_installed(config: Path) -> None:
|
|
try:
|
|
path = lookup(config, Preferences.DEFAULT)
|
|
get_app_path(Path(path), APPID_DAYZ)
|
|
except Exception as e:
|
|
logger.critical(e)
|
|
raise e
|