Open ESET or KVRT during system_setup.py mode 2

This commit is contained in:
2Shirt 2019-11-26 13:48:24 -07:00
parent 6f44a37cd0
commit bb0a74b98c
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -3,6 +3,7 @@
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import os
import pathlib
import sys import sys
# Init # Init
@ -413,6 +414,20 @@ def open_all_the_things():
open_windows_activation() open_windows_activation()
sleep(3) sleep(3)
run_xmplay() run_xmplay()
if setup_mode == 'Dat':
# System needs full AV scan
print_standard('Please run a full virus scan before continuing')
eset_path = pathlib.Path(
f'{os.environ.get("PROGRAMFILES", "")}/ESET/ESET Security/ecmds.exe')
if eset_path.exists():
popen_program([eset_path, '/launch'])
else:
try:
run_kvrt()
except Exception:
# Meh
pass
pause('Press Enter to exit...')
if __name__ == '__main__': if __name__ == '__main__':