Bugfix: PE_TOOLS paths
This commit is contained in:
parent
5dc7b72c61
commit
5e5d5834d9
1 changed files with 8 additions and 3 deletions
|
|
@ -175,6 +175,11 @@ def menu_backup():
|
||||||
pause('\nPress Enter to return to main menu... ')
|
pause('\nPress Enter to return to main menu... ')
|
||||||
|
|
||||||
def menu_root():
|
def menu_root():
|
||||||
|
# Fix PE_TOOLS paths
|
||||||
|
for k in PE_TOOLS.keys():
|
||||||
|
PE_TOOLS[k]['Path'] = r'{}\{}'.format(
|
||||||
|
global_vars['BinDir'], PE_TOOLS[k]['Path'])
|
||||||
|
|
||||||
menus = [
|
menus = [
|
||||||
{'Name': 'Create Backups', 'Menu': menu_backup},
|
{'Name': 'Create Backups', 'Menu': menu_backup},
|
||||||
{'Name': 'Setup Windows', 'Menu': menu_setup},
|
{'Name': 'Setup Windows', 'Menu': menu_setup},
|
||||||
|
|
@ -344,8 +349,8 @@ def menu_tools():
|
||||||
main_entries = tools,
|
main_entries = tools,
|
||||||
action_entries = actions)
|
action_entries = actions)
|
||||||
if (selection.isnumeric()):
|
if (selection.isnumeric()):
|
||||||
tool = tools[int(selection)-1]
|
name = tools[int(selection)-1]['Name']
|
||||||
cmd = [PE_TOOLS[tool]['Path']] + PE_TOOLS[tool].get('Args', [])
|
cmd = [PE_TOOLS[name]['Path']] + PE_TOOLS[name].get('Args', [])
|
||||||
if tool == 'Blue Screen View':
|
if tool == 'Blue Screen View':
|
||||||
# Select path to scan
|
# Select path to scan
|
||||||
minidump_path = select_minidump_path()
|
minidump_path = select_minidump_path()
|
||||||
|
|
@ -354,7 +359,7 @@ def menu_tools():
|
||||||
try:
|
try:
|
||||||
popen_program(cmd)
|
popen_program(cmd)
|
||||||
except Exception:
|
except Exception:
|
||||||
print_error('Failed to run {prog}'.format(prog=tool['Name']))
|
print_error('Failed to run {}'.format(name))
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
pause()
|
pause()
|
||||||
elif (selection == 'M'):
|
elif (selection == 'M'):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue