Open webcam tests at the end of Auto Setup

Addresses issue #9
This commit is contained in:
2Shirt 2022-02-21 01:03:39 -07:00
parent 487bfba2e5
commit 0cadf54b4d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 12 additions and 0 deletions

View file

@ -150,6 +150,7 @@ BASE_MENUS = {
MenuEntry('Device Manager', 'auto_open_device_manager'),
MenuEntry('HWiNFO Sensors', 'auto_open_hwinfo_sensors'),
MenuEntry('Snappy Driver Installer', 'auto_open_snappy_driver_installer_origin'),
MenuEntry('Webcam Tests', 'auto_open_webcam_tests'),
MenuEntry('Windows Activation', 'auto_open_windows_activation'),
MenuEntry('Windows Updates', 'auto_open_windows_updates'),
MenuEntry('XMPlay', 'auto_open_xmplay'),

View file

@ -9,6 +9,7 @@ import json
import os
import re
import sys
import webbrowser
from wk.cfg.main import KIT_NAME_FULL
from wk.cfg.setup import (
@ -547,6 +548,11 @@ def auto_open_snappy_driver_installer_origin():
TRY_PRINT.run('Snappy Driver Installer...', open_snappy_driver_installer_origin)
def auto_open_webcam_tests():
"""Open Webcam Tests."""
TRY_PRINT.run('Webcam Tests...', open_webcam_tests)
def auto_open_windows_activation():
"""Open Windows Activation."""
if not is_activated():
@ -1029,6 +1035,11 @@ def open_snappy_driver_installer_origin():
run_tool('SDIO', 'SDIO', cwd=True, pipe=True, popen=True)
def open_webcam_tests():
"""Open Webcam Tests."""
webbrowser.open('http://webcamtests.com/')
def open_windows_activation():
"""Open Windows Activation."""
popen_program(['slui'])