diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2025-04-24 17:03:07 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-04-24 17:03:20 +0200 |
| commit | 20ce88a2749fc0c12aa219ee0d9a42395a9b17c3 (patch) | |
| tree | b63d84399555cc883cd0b7c2a2ae77756e282321 /searx/webapp.py | |
| parent | 8595e467ce71bc877d823aa1a8f4b74f68918043 (diff) | |
Revert "[fix] is_werkzeug_reload_active is not realted to python -m"
This reverts commit 3392beb914591cac6e862dab66e4d4911b798800.
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |