"""Utility functions supporting F1 24 test script.""" import os import re def get_resolution() -> tuple[int]: """Gets resolution width and height from local xml file created by game.""" username = os.getlogin() config_path = f"C:\\Users\\{username}\\Documents\\My Games\\F1 24\\hardwaresettings" config_filename = "hardware_settings_config.xml" resolution = re.compile(r"