From 8965ab11eb449d4571a682ccf181fd12a7cbd42e Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Thu, 29 May 2025 19:28:35 +0200 Subject: [PATCH] [feature] print line number --- common/utils.py | 4 ++++ 1 file changed, 4 insertions(+) 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)