| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| ##@package  | 
| #  | 
| # @todo: Àñ°ü¿¨¶ÔÍ⿪·ÅµÄÏÂÔØºÍ Àñ°üÁìÈ¡  | 
| #  | 
| # @author: Alee  | 
| # @date 2018-6-5 ÏÂÎç04:18:14  | 
| # @version 1.0  | 
| #  | 
| #      | 
| #ÐèÒª°²×°µÚÈý·½¿â  | 
| #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() + "\\..\\Coupon\\config.ini").GetValue("Coupon", "IsDebug")  | 
|   | 
| #center.secondworld.net.cn  | 
| def main():  | 
|     time.sleep(1)   | 
|     os.system("title CouponCode-%s"%datetime.datetime.today())  | 
|     mylog.InitLog(r"D:/ServerLog", "CouponCode.txt", False, Def_Debug)  | 
|       | 
|       | 
|     CenterPort = int(ReadConfig.ReadConfig(os.getcwd() + "\\..\\Coupon\\config.ini").GetValue("Coupon", "CodePort", 53003))  | 
|       | 
|     # ¶àÏ̠߳Ðè·À·¶Æµ·±·ÃÎÊÇé¿ö  | 
|     run(host='0.0.0.0', port=CenterPort, app=webapp.myapp, server='waitress')  | 
|     return  | 
|   | 
| if __name__ == '__main__':  | 
|     main()  |