WizardKit/.bin/Scripts/sfc_scan.py
Alan Mason 41d6cfc209 2017-08: Retroactive Updates
* Bugfixes
  * Windows 10 v1703 / Redstone 2 / Creator's Update now recognized (attempt #2)
2017-11-17 00:57:07 -07:00

37 lines
879 B
Python

# Wizard Kit: SFC Tool
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: SFC Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
def abort():
print_warning('Aborted.')
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
try:
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
}}
stay_awake()
try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results)
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
except SystemExit:
pass
except:
major_exception()