mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 21:48:00 -05:00
Satisfying linter hopefully
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user