Added an option of the Get Link (the number of traceback to rewind to)

This commit is contained in:
Maximilien Rigaut 2022-05-28 03:16:13 +02:00
parent 15a087da92
commit 528001db2c
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ def __GFi(): # pragma: no cover (Cursed frame inspection)
return __prev_stack().filename
def __GLk(): # pragma: no cover (Cursed frame inspection)
return f' File "{__prev_stack(2).filename}", line {max(__prev_stack(2).lineno, 1)}'.replace("\\", "/")
def __GLk(n=2): # pragma: no cover (Cursed frame inspection)
return f' File "{__prev_stack(n).filename}", line {max(__prev_stack(n).lineno, 1)}'.replace("\\", "/")
###############################################################################