This commit is contained in:
Nikolas
2024-11-22 10:02:06 -08:00
parent 0b429a5645
commit 8bda4cf566
2 changed files with 1 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ LOG_DIRECTORY = SCRIPT_DIRECTORY.joinpath("run")
STEAM_GAME_ID = 1286680
EXECUTABLE = "Wonderlands.exe"
def setuo_logging():
def setup_logging():
"""default logging config"""
setup_log_directory(LOG_DIRECTORY)
logging.basicConfig(filename=f'{LOG_DIRECTORY}/harness.log',

View File

@@ -29,16 +29,6 @@ def get_documents_path() -> str:
root_handle.Close()
def valid_filepath(path: str) -> bool:
"""Validate given path is valid and leads to an existing file. A directory
will throw an error, path must be a file"""
if path is None or len(path.strip()) <= 0:
return False
if os.path.isdir(path) is True:
return False
return os.path.isfile(path)
def read_resolution() -> tuple[int]:
"""read current resolution"""
dest = f"{get_documents_path()}\\My Games\\Tiny Tina's Wonderlands\\Saved\\Config\\WindowsNoEditor\\GameUserSettings.ini"