[feature] print line number
This commit is contained in:
parent
513497d492
commit
8965ab11eb
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ def open_file_browser(directory):
|
|||
# xdg-open *should* be supported by recent Gnome, KDE, Xfce
|
||||
|
||||
|
||||
def LINE():
|
||||
return sys._getframe(1).f_lineno
|
||||
|
||||
|
||||
def printerr(*args, **kwargs):
|
||||
print(*args, file=sys.stderr, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue