From 20ce88a2749fc0c12aa219ee0d9a42395a9b17c3 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 24 Apr 2025 17:03:07 +0200 Subject: [PATCH] Revert "[fix] is_werkzeug_reload_active is not realted to python -m" This reverts commit 3392beb914591cac6e862dab66e4d4911b798800. --- searx/webapp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/searx/webapp.py b/searx/webapp.py index cc5fdb927..4ecaab7d2 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1383,6 +1383,11 @@ def is_werkzeug_reload_active() -> bool: if "--reload" in sys.argv or "--debug" in sys.argv: return True + elif frames[0].filename.endswith('searx/webapp.py'): + # server was launched by "python -m searx.webapp" / see run() + if searx.sxng_debug: + return True + return False