[fix] is_werkzeug_reload_active is not realted to python -m

Werkzeug's reloader is not active when was server is launched by::

    python -m searx.webapp

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-04-24 15:20:52 +02:00
parent c6c6d3027c
commit 4f22c71510

View File

@ -1383,11 +1383,6 @@ 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