* "ClientDir\Info" renamed to "ClientDir\Logs"
* Logs are sorted into subdirs based on the source:
* KIT_NAME_FULL: WizardKit logs
* d7II: d7II logs
* Tools: Logs from tools called by WizardKit or d7II
* (no subdir): System information
* "ClientDir\Backups"
* Switched to "Backups\Source\{Date}" from "Backups\{Date}\Source"
29 lines
834 B
Python
29 lines
834 B
Python
# Wizard Kit: Search for product keys in the transfer folder
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Init
|
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
|
sys.path.append(os.getcwd())
|
|
from functions.product_keys import *
|
|
init_global_vars()
|
|
os.system('title {}: Transferred Key Finder'.format(KIT_NAME_FULL))
|
|
global_vars['LogFile'] = r'{LogDir}\{kit_name}\Transferred Keys.log'.format(
|
|
kit_name=KIT_NAME_FULL, **global_vars)
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
stay_awake()
|
|
clear_screen()
|
|
print_info('{}: Transferred Key Finder\n'.format(KIT_NAME_FULL))
|
|
try_and_print(message='Searching for keys...',
|
|
function=list_clientdir_keys, print_return=True)
|
|
|
|
# Done
|
|
print_standard('\nDone.')
|
|
exit_script()
|
|
except SystemExit:
|
|
pass
|
|
except:
|
|
major_exception()
|