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