| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| ##@package  | 
| #  | 
| # @todo: ¿ª¹Ø·þ´¦Àí  | 
| #  | 
| # @author: Alee  | 
| # @date 2019-2-20 ÏÂÎç04:45:00  | 
| # @version 1.0  | 
| #  | 
| # @note:   | 
| #  | 
| #---------------------------------------------------------------------  | 
| #      | 
| #ÐèÒª°²×°µÚÈý·½¿â  | 
| #waitress-1.1.0.tar.gz  | 
| #requests-2.18.4.tar.gz  | 
| #---------------------------------------------------------------------  | 
| import webapp  | 
| from bottle import run  | 
| from lib import mylog  | 
| import time  | 
| import os  | 
| import datetime  | 
| from lib import ReadConfig  | 
|   | 
| Def_Debug = ReadConfig.ReadConfig(os.getcwd() + "\\config.ini").GetValue("Remote", "IsDebug")  | 
|   | 
| #center.secondworld.net.cn  | 
| def main():  | 
|     time.sleep(1)   | 
|     os.system("title ·þÎñÆ÷¿ØÖÆÌ¨-%s"%datetime.datetime.today())  | 
|     mylog.InitLog(r"D:/ServerLog", "RemoteServer.txt", False, Def_Debug)  | 
|       | 
|     CenterPort = int(ReadConfig.ReadConfig(os.getcwd() + "\\config.ini").GetValue("Remote", "Port"))  | 
|       | 
|     run(host='0.0.0.0', port=CenterPort, app=webapp.myapp)  | 
|     return  | 
|   | 
| if __name__ == '__main__':  | 
|     main()  |