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)