This commit is contained in:
Nikolas
2024-08-30 14:29:56 -07:00
parent cd6af8a12b
commit 1f90429313
2 changed files with 7 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
from argparse import ArgumentParser
import logging
import os
from pathlib import Path
import time
import sys
import pyautogui as gui
@@ -23,8 +24,6 @@ from harness_utils.output import (
from harness_utils.steam import exec_steam_game
from harness_utils.keras_service import KerasService
SCRIPT_DIR = Path(__file__).resolve().parent
LOG_DIR = SCRIPT_DIR.joinpath("run")
PROCESS_NAME = "cities2.exe"
STEAM_GAME_ID = 949230
launcher_files = [

View File

@@ -50,6 +50,7 @@ def copy_continuegame(config_files: list[str]) -> None:
logging.error(f"Could not copy save information files. {err}")
raise err
def copy_launcherfiles(launcher_files: list[str]) -> None:
"""Copy launcher files to game directory"""
for file in launcher_files:
@@ -62,7 +63,8 @@ def copy_launcherfiles(launcher_files: list[str]) -> None:
except OSError as err:
logging.error(f"Could not copy launcher files. {err}")
raise err
def copy_launcherpath():
"""Copy the override launcherpath file to launcherpath directory"""
try:
@@ -87,7 +89,8 @@ def copy_launcherpath():
except OSError as err:
logging.error(f"Could not copy the launcherpath file. {err}")
raise err
def copy_benchmarksave(save_files: list[str]) -> None:
"""Copy benchmark save file to save directory"""
for file in save_files:
@@ -99,4 +102,4 @@ def copy_benchmarksave(save_files: list[str]) -> None:
shutil.copy(src_path, dest_path)
except OSError as err:
logging.error(f"Could not copy launcher files. {err}")
raise err
raise err