[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:
parent
c6c6d3027c
commit
3392beb914
@ -1383,11 +1383,6 @@ def is_werkzeug_reload_active() -> bool:
|
|||||||
if "--reload" in sys.argv or "--debug" in sys.argv:
|
if "--reload" in sys.argv or "--debug" in sys.argv:
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user