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

This commit is contained in:
mdipierro
2020-06-22 22:39:28 -07:00
parent cf76978a39
commit fc7c1bd2de
9 changed files with 43 additions and 27 deletions
+2
View File
@@ -21,6 +21,8 @@ from gevent import monkey
monkey.patch_all()
def run(options):
from gluon.settings import global_settings
global_settings.web2py_runtime_handler = True
import gluon.main
if options.password != '<recycle>':
gluon.main.save_password(options.password, int(options.port))