WizardKit/scripts/launch_sdio.py
2Shirt 3f090ee968
Refactor SDIO sections
* Use the same code paths for the launcher and AutoSetup
* Local copy now has a different theme to differentiate
2023-11-11 17:45:28 -08:00

15 lines
450 B
Python

"""WizardKit: Launch Snappy Driver Installer Origin"""
# vim: sts=2 sw=2 ts=2
import wk
# Functions
if __name__ == '__main__':
wk.ui.cli.set_title(
f'{wk.cfg.main.KIT_NAME_FULL}: Snappy Driver Installer Origin Launcher',
)
log_dir = wk.log.format_log_path(tool=True).parent
sdio_path = wk.kit.tools.get_sdio_path(interactive=True)
cmd = [sdio_path, '-log_dir', log_dir]
wk.exe.run_program(cmd, check=False, cwd=sdio_path.parent)