Satisfying linter hopefully

This commit is contained in:
J-Doiron
2025-09-24 15:54:09 -07:00
parent 0029d3ddb5
commit d02b86279d
4 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ PARENT_DIR = str(Path(sys.path[0], ".."))
sys.path.append(PARENT_DIR)
from harness_utils.keras_service import KerasService
from harness_utils.steam import get_app_install_location, get_build_id, exec_steam_game
from harness_utils.steam import get_build_id, exec_steam_game
from harness_utils.output import (
DEFAULT_DATE_FORMAT,
DEFAULT_LOGGING_FORMAT,

View File

@@ -132,11 +132,11 @@ def replace_exe():
if not os.path.exists(check_backup):
os.rename(launcher_exe, check_backup)
shutil.copy(dx12_exe, launcher_exe)
logging.info(f"Replacing launcher file in {EXE_PATH}")
logging.info("Replacing launcher file in %s", EXE_PATH)
elif os.path.exists(check_backup):
if not os.path.exists(launcher_exe):
shutil.copy(dx12_exe, launcher_exe)
logging.info(f"Replacing launcher file in {EXE_PATH}")
logging.info("Replacing launcher file in %s", EXE_PATH)
else:
logging.info("Launcher already replaced with DX12 exe.")
@@ -146,12 +146,12 @@ def restore_exe():
check_backup = Path(f"{EXE_PATH}\\StardockLauncher_launcher.exe")
launcher_exe = Path(f"{EXE_PATH}\\StardockLauncher.exe")
if not os.path.exists(check_backup):
logging.info(f"Launcher already restored or file does not exist.")
logging.info("Launcher already restored or file does not exist.")
elif os.path.exists(check_backup):
if not os.path.exists(launcher_exe):
os.rename(check_backup, launcher_exe)
logging.info(f"Restoring launcher file in {EXE_PATH}")
logging.info("Restoring launcher file in %s", EXE_PATH)
else:
os.remove(launcher_exe)
os.rename(check_backup, launcher_exe)
logging.info(f"Restoring launcher file in {EXE_PATH}")
logging.info("Restoring launcher file in %s", EXE_PATH)

View File

@@ -30,7 +30,7 @@ LOG_DIR = SCRIPT_DIR.joinpath("run")
PROCESS_NAME = "cities2.exe"
STEAM_GAME_ID = 949230
top_left_keras = ScreenSplitConfig(
divide_method=ScreenShotDivideMethod.QUADRANT,
divide_method=ScreenShotDivideMethod.QUADRANT,
quadrant=ScreenShotQuadrant.TOP_LEFT)
launcher_files = [

View File

@@ -79,7 +79,7 @@ def run_benchmark(keras_host, keras_port):
if not result:
logging.info("Did not find the settings button. Is there something wrong on the screen?")
sys.exit(1)
gui.moveTo(result["x"], result["y"])
time.sleep(0.2)
gui.mouseDown()