Sfoglia il codice sorgente

r2

tags/2.0.0-beta.1
jyong 5 mesi fa
parent
commit
573cd15e77
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      api/app.py

+ 2
- 2
api/app.py Vedi File

# It seems that JetBrains Python debugger does not work well with gevent, # It seems that JetBrains Python debugger does not work well with gevent,
# so we need to disable gevent in debug mode. # so we need to disable gevent in debug mode.
# If you are using debugpy and set GEVENT_SUPPORT=True, you can debug with gevent. # If you are using debugpy and set GEVENT_SUPPORT=True, you can debug with gevent.
if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() in {"false", "0", "no"}:
from gevent import monkey
# if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() in {"false", "0", "no"}:
#from gevent import monkey
# #
# # gevent # # gevent
# monkey.patch_all() # monkey.patch_all()

Loading…
Annulla
Salva