From cb40391e0d1c45d83ba5edac195b25b3fe561dab Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Fri, 15 Nov 2024 20:16:59 +0100 Subject: [PATCH] print to stderr --- common/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/utils.py b/common/utils.py index d45cd8c..e9757b4 100644 --- a/common/utils.py +++ b/common/utils.py @@ -68,6 +68,10 @@ def open_file_browser(directory): # xdg-open *should* be supported by recent Gnome, KDE, Xfce +def printerr(*args, **kwargs): + print(*args, file=sys.stderr, **kwargs) + + # # Evaluate a bezier curve for the parameter 0<=t<=1 along its length # def evaluateBezierPoint(p1, h1, h2, p2, t): # return ((1 - t)**3) * p1 + (3 * t * (1 - t)**2) * h1 + (3 * (t**2) * (1 - t)) * h2 + (t**3) * p2