1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| #!/usr/bin/python
| # -*- coding: utf-8 -*-
| #
| ##@package
| #
| # @todo: 接收外面的HTTP请求
| #
| # @author: xdh
| # @date 2018-6-8 17:10:51
| # @version 1.0
| #
| # @note:
| #
| #---------------------------------------------------------------------
| import webapp
| from bottle import run
| from lib import mylog, ConfigIniReader
| import time
| import os
| import datetime
|
| def main():
| #time.sleep(180) # 启动3分钟后运行,server='waitress',debug=True
| mylog.InitMyLog("voiceapp")
| os.system("title VoiceApp-%s"%datetime.datetime.today())
|
| run(host=ConfigIniReader.GetConfig().GetValue('host'), port=int(ConfigIniReader.GetConfig().GetValue('port')), app=webapp.myapp,server='waitress')
| return
|
| if __name__ == '__main__':
| main()
|
|