linter more

This commit is contained in:
Nikolas
2024-08-30 09:54:03 -07:00
parent cbfbb4b537
commit 80eb898c5e
2 changed files with 5 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import time
import pyautogui as gui
import pydirectinput as user
import sys
from cs2_utils import get_resolution, get_args, copy_config
from cs2_utils import get_resolution, copy_config
sys.path.insert(1, os.path.join(sys.path[0], '..'))
@@ -66,7 +66,7 @@ def run_benchmark(keras_service):
logging.info('Starting benchmark')
user.press("`")
time.sleep(0.5)
console_command("exec maps\de_dust2_benchmark")
console_command(r"exec maps\de_dust2_benchmark")
time.sleep(1)
console_command("ui_playsettings_maps_workshop @workshop/3240880604/de_dust2_benchmark")
time.sleep(1)
@@ -127,9 +127,9 @@ def main():
keras_service = KerasService(args.keras_host, args.keras_port, os.path.join(
LOG_DIR, "screenshot.jpg"))
start_time, end_time = run_benchmark(keras_service)
height, width = get_resolution()
report = {
"resolution": format_resolution(width, height),
@@ -147,4 +147,4 @@ if __name__ == "__main__":
except Exception as ex:
logging.error("something went wrong running the benchmark!")
logging.exception(ex)
sys.exit(1)
sys.exit(1)

View File

@@ -1,5 +1,4 @@
"""Counter-Strike 2 test script utils"""
from argparse import ArgumentParser
import logging
import re
import shutil