Bugfix: Was trying to use 'Env' before it was set.

This commit is contained in:
Alan Mason 2017-12-01 12:24:11 -08:00
parent cd3f3ed8d3
commit 5aab8a98e3
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,6 @@
from functions.data import *
# STATIC VARIABLES
DISKPART_SCRIPT = r'{}\diskpart.script'.format(global_vars['Env']['TMP'])
WINDOWS_VERSIONS = [
{'Name': 'Windows 7 Home Basic',
'Image File': 'Win7',

View file

@ -11,6 +11,9 @@ init_global_vars()
set_title('{}: Root Menu'.format(KIT_NAME_FULL))
global_vars['LogFile'] = r'{LogDir}\WinPE.log'.format(**global_vars)
# STATIC VARIABLES
DISKPART_SCRIPT = r'{}\diskpart.script'.format(global_vars['Env']['TMP'])
if __name__ == '__main__':
try:
menu_root()