mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
8
.github/workflows/ci.py
vendored
8
.github/workflows/ci.py
vendored
@@ -19,11 +19,19 @@ SW = None
|
|||||||
|
|
||||||
|
|
||||||
def do_print_crash_reports():
|
def do_print_crash_reports():
|
||||||
|
print('Printing available crash reports...')
|
||||||
for cdir in (os.path.expanduser('~/Library/Logs/DiagnosticReports'), '/Library/Logs/DiagnosticReports'):
|
for cdir in (os.path.expanduser('~/Library/Logs/DiagnosticReports'), '/Library/Logs/DiagnosticReports'):
|
||||||
|
if not os.path.exists(cdir):
|
||||||
|
continue
|
||||||
|
print(cdir)
|
||||||
|
found = False
|
||||||
for f in glob.glob(os.path.join(cdir, 'kitty_*')):
|
for f in glob.glob(os.path.join(cdir, 'kitty_*')):
|
||||||
|
found = True
|
||||||
print(os.path.basename())
|
print(os.path.basename())
|
||||||
with open(f) as src:
|
with open(f) as src:
|
||||||
print(src.read())
|
print(src.read())
|
||||||
|
if not found:
|
||||||
|
print(os.listdir(cdir))
|
||||||
|
|
||||||
|
|
||||||
def run(*a, print_crash_reports=False):
|
def run(*a, print_crash_reports=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user