From 836c843b2e7ad610f2b45085ab51d43d7f1b541e Mon Sep 17 00:00:00 2001 From: tretrauit Date: Thu, 25 May 2023 10:41:51 +0700 Subject: [PATCH] fix: str -> Path --- worthless/patcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worthless/patcher.py b/worthless/patcher.py index 132d968..dcc4a08 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -246,8 +246,8 @@ class Patcher: # Delete old Telemetry.dll on Linux (cAsE sEnsItIvE) if platform.system() == "Linux": - telemetry_path = self._installer.get_game_data_name().joinpath("Plugins/Telemetry.dll") - if telemetry_path.exists() and self._installer.get_game_data_name().joinpath("Plugins/telemetry.dll").exists(): + telemetry_path = Path(self._installer.get_game_data_name()).joinpath("Plugins/Telemetry.dll") + if telemetry_path.exists() and Path(self._installer.get_game_data_name()).joinpath("Plugins/telemetry.dll").exists(): await telemetry_path.unlink() patch_jobs.append(disable_crashreporters())