Updated select_minidump_path()
This commit is contained in:
parent
e892cd3406
commit
5c5b13b33c
1 changed files with 7 additions and 9 deletions
|
|
@ -416,19 +416,17 @@ def select_minidump_path():
|
||||||
|
|
||||||
# Search for minidumps
|
# Search for minidumps
|
||||||
set_thread_error_mode(silent=True) # Prevents "No disk" popups
|
set_thread_error_mode(silent=True) # Prevents "No disk" popups
|
||||||
tmp = run_program('mountvol')
|
for d in psutil.disk_partitions():
|
||||||
tmp = [d for d in re.findall(r'.*([A-Za-z]):\\', tmp.stdout.decode())]
|
if global_vars['Env']['SYSTEMDRIVE'].upper() in d.mountpoint:
|
||||||
# Remove RAMDisk letter
|
# Skip RAMDisk
|
||||||
if 'X' in tmp:
|
continue
|
||||||
tmp.remove('X')
|
if os.path.exists(r'{}Windows\MiniDump'.format(d.mountpoint)):
|
||||||
for disk in tmp:
|
dumps.append({'Name': r'{}Windows\MiniDump'.format(d.mountpoint)})
|
||||||
if os.path.exists('{}:\\Windows\\MiniDump'.format(disk)):
|
|
||||||
dumps.append({'Name': '{}:\\Windows\\MiniDump'.format(disk)})
|
|
||||||
set_thread_error_mode(silent=False) # Return to normal
|
set_thread_error_mode(silent=False) # Return to normal
|
||||||
|
|
||||||
# Check results before showing menu
|
# Check results before showing menu
|
||||||
if len(dumps) == 0:
|
if len(dumps) == 0:
|
||||||
print_error(' No BSoD / MiniDump paths found')
|
print_error('ERROR: No BSoD / MiniDump paths found')
|
||||||
sleep(2)
|
sleep(2)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue