From 3abccc64ef053cd141d1aeebecb5de831244f520 Mon Sep 17 00:00:00 2001 From: "firedcto@gmail.com" Date: Tue, 13 Aug 2024 17:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87okww?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=B8=B8=E6=88=8F=E5=8F=AF=E8=83=BD=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=E6=88=96=E8=80=85=E5=90=AF=E5=8A=A8=E4=B8=8D=E4=BA=86?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E5=85=B3=E9=97=AD=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E9=9D=99=E9=9F=B3=E9=80=89=E9=A1=B9=E6=97=B6=E5=80=99?= =?UTF-8?q?,=20=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E5=A3=B0=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 4ecb49d..7107ef0 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,5 @@ import os +from pathlib import Path from ok.util.path import get_path_in_package from src.task.AutoCombatTask import AutoCombatTask @@ -13,7 +14,8 @@ version = "v5.0.11" def calculate_pc_exe_path(running_path): - return running_path + game_exe_folder = Path(running_path).parents[3] + return str(game_exe_folder / "Wuthering Waves.exe") config = {