mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 05:33:52 -05:00
comments
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user