mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-09 22:18: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)
|
||||
|
||||
Reference in New Issue
Block a user