Revert "[fix] is_werkzeug_reload_active is not realted to python -m"
This reverts commit 3392beb914
.
This commit is contained in:
parent
8595e467ce
commit
20ce88a274
|
@ -1383,6 +1383,11 @@ 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…
Reference in New Issue