prevent loading un-necssary modules when using a handled, thanks Paolo

This commit is contained in:
mdipierro committed 2020-06-22 22:39:28 -07:00
1 parent cf76978a39
commit fc7c1bd2de
9 files changed
+43 -27

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ if not os.path.isdir('applications'):
sys.path = [path] + [p for p in sys.path if not p == path]
from gluon.settings import global_settings
global_settings.web2py_runtime_handler = True
import gluon.main
wsgiref.handlers.CGIHandler().run(gluon.main.wsgibase)