mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 21:29:21 +02:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue