- change : 修正自动连接CTP的报错

This commit is contained in:
lamter 2017-04-27 10:49:47 +08:00
parent d4686b6275
commit d1f211a45f
3 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
cd ..
docker run --name vnpy --rm \
-v `pwd`:/srv/vnpy \
-v `pwd`/../vn.trader/VT_setting.json:/etc/vnpy/VT_setting.json \
-v `pwd`/vn.trader/tmp/VT_setting.json:/etc/vnpy/VT_setting.json \
-p 2014:2014 -p 602:602 \
vnpy:latest \
python /srv/vnpy/vn.trader/vtServer.py --VT_setting /etc/vnpy/VT_setting.json

View File

@ -9,7 +9,7 @@ from copy import copy
try:
from WindPy import w
except ImportError:
print u'请先安装WindPy接口'
print(u'请先安装WindPy接口')
from vtGateway import *

View File

@ -1,5 +1,8 @@
# encoding: utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import vtGlobal
import json
import os
@ -66,7 +69,7 @@ class VtServer(RpcServer):
#----------------------------------------------------------------------
def printLog(content):
"""打印日志"""
print datetime.now().strftime("%H:%M:%S"), '\t', content
print(datetime.now().strftime("%H:%M:%S"), '\t', content)
#----------------------------------------------------------------------