From 65b649c8daf6ebfdb4ad084bae17824ac1141d80 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 14 Jun 2017 19:25:49 +0800 Subject: [PATCH] sync vnpy1.6.2 --- vnpy/trader/app/ctaStrategy/ctaBase.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vnpy/trader/app/ctaStrategy/ctaBase.py b/vnpy/trader/app/ctaStrategy/ctaBase.py index 0bd7e1a7..47736710 100644 --- a/vnpy/trader/app/ctaStrategy/ctaBase.py +++ b/vnpy/trader/app/ctaStrategy/ctaBase.py @@ -57,12 +57,8 @@ ENGINETYPE_TRADING = 'trading' # 实盘 import sys import os -trader_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) -if trader_path not in sys.path: - sys.path.append(trader_path) - # CTA引擎中涉及的数据类定义 -from vtConstant import * +from vnpy.trader.vtConstant import * ######################################################################## class StopOrder(object):