From 653a620d0a4071dc4c15e34fc8fc6c589270b0e5 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Tue, 7 Jan 2025 20:05:44 +0200 Subject: [PATCH] umu_run: remove unused import and fix mypy errors --- umu/umu_run.py | 3 +-- umu/umu_util.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/umu/umu_run.py b/umu/umu_run.py index d7f9d743..883e3f2d 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -52,7 +52,6 @@ from umu.umu_runtime import setup_umu from umu.umu_util import ( CompatibilityTool, - SteamRuntime, get_libc, get_library_paths, has_umu_setup, @@ -326,7 +325,7 @@ def build_command( raise FileNotFoundError(err) if env.get("UMU_NO_TOOL") == "1": - runtime = CompatibilityTool(RUNTIME_VERSIONS[RUNTIME_NAMES["sniper"]].path) + runtime = CompatibilityTool(str(RUNTIME_VERSIONS[RUNTIME_NAMES["sniper"]].path), shim) # Will run the game within the Steam Runtime w/o Proton # Ideally, for reliability, executables should be compiled within # the Steam Runtime diff --git a/umu/umu_util.py b/umu/umu_util.py index b2efb2c9..907916c9 100644 --- a/umu/umu_util.py +++ b/umu/umu_util.py @@ -380,7 +380,7 @@ class SteamRuntime(SteamBase): def __init__(self, path: str) -> None: # noqa: D107 super().__init__(path) self.runtime = ( - SteamRuntime(self.required_runtime.path.as_posix()) + SteamRuntime(str(self.required_runtime.path)) if self.required_tool_appid is not None else None )