From bb0a74b98cd7fca59acc89f6fa5f3c018a82e46d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 26 Nov 2019 13:48:24 -0700 Subject: [PATCH] Open ESET or KVRT during system_setup.py mode 2 --- .bin/Scripts/system_setup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.bin/Scripts/system_setup.py b/.bin/Scripts/system_setup.py index a2fe955a..68294b04 100644 --- a/.bin/Scripts/system_setup.py +++ b/.bin/Scripts/system_setup.py @@ -3,6 +3,7 @@ # vim: sts=2 sw=2 ts=2 import os +import pathlib import sys # Init @@ -413,6 +414,20 @@ def open_all_the_things(): open_windows_activation() sleep(3) 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__':