diff --git a/common/utils.py b/common/utils.py index d7f3fab..40a114c 100644 --- a/common/utils.py +++ b/common/utils.py @@ -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)