logging_handler.py: Reveal log on crash

This commit is contained in:
Mykola Grymalyuk
2023-05-25 11:25:13 -06:00
parent c031917a12
commit 4f0b605786
6 changed files with 45 additions and 12 deletions

View File

@@ -216,6 +216,9 @@ class InitializeLoggingSupport:
applescript.AppleScript(f'display dialog "{error_msg}" with title "OpenCore Legacy Patcher ({self.constants.patcher_version})" buttons {{"OK"}} default button "OK" with icon caution giving up after 30').run()
# Open log location
subprocess.run(["open", "--reveal", self.log_filepath])
def custom_thread_excepthook(args) -> None:
"""