def main():
if len(sys.argv) > 1:
config_file = sys.argv[1]
else:
config_file = DEFAULT_CONFIG
app = make_app(config_file)
with codecs.open(config_file, 'r', 'utf8') as f:
config = konfig.Config(f)
run(app=app,
host=config['henet'].get('host', DEFAULT_HOST),
port=config['henet'].get('port', DEFAULT_PORT),
server='waitress')
评论列表
文章目录