diff --git a/app.py b/app.py index 8e63dbc9b..bb9d6d672 100644 --- a/app.py +++ b/app.py @@ -1,13 +1,22 @@ # coding:utf-8 +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + +# --------------------------------------------------------------------------------- +# 入口文件 +# --------------------------------------------------------------------------------- + + # pip install profiler_online # 性能测试 # from profiler_online import run_profiler # run_profiler() - -from gevent import monkey -monkey.patch_all() - import sys import io import os @@ -17,6 +26,9 @@ from route import app, socketio from gevent.pywsgi import WSGIServer from geventwebsocket.handler import WebSocketHandler +from gevent import monkey +monkey.patch_all() + try: if __name__ == "__main__": diff --git a/setting.py b/setting.py index b87d4f754..538f74e5f 100755 --- a/setting.py +++ b/setting.py @@ -1,5 +1,17 @@ # coding:utf-8 +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + +# --------------------------------------------------------------------------------- +# 配置文件 +# --------------------------------------------------------------------------------- + import time import sys diff --git a/task.py b/task.py index 9437b0684..65ad933c7 100755 --- a/task.py +++ b/task.py @@ -1,8 +1,17 @@ # coding: utf-8 -#------------------------------ +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + +# --------------------------------------------------------------------------------- # 计划任务 -#------------------------------ +# --------------------------------------------------------------------------------- + import sys import os import json diff --git a/tools.py b/tools.py index 5488bbd88..38c06a0ea 100755 --- a/tools.py +++ b/tools.py @@ -1,5 +1,18 @@ # coding: utf-8 +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + +# --------------------------------------------------------------------------------- +# 工具箱 +# --------------------------------------------------------------------------------- + + import sys import os import json