From 9fa691c09a801aee94767ba5d51d512328bfd417 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 14 Jun 2017 19:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=A8=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E7=AD=96=E7=95=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/ctaStrategy/strategy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/ctaStrategy/strategy/__init__.py b/vnpy/trader/app/ctaStrategy/strategy/__init__.py index fea65d9a..6a1290bd 100644 --- a/vnpy/trader/app/ctaStrategy/strategy/__init__.py +++ b/vnpy/trader/app/ctaStrategy/strategy/__init__.py @@ -22,7 +22,7 @@ for root, subdirs, files in os.walk(path): # 只有文件名中包含strategy且非.pyc的文件,才是策略文件 if 'strategy' in name and '.pyc' not in name: # 模块名称需要上前缀 - moduleName = 'ctaStrategy.strategy.' + name.replace('.py', '') + moduleName = 'vnpy.trader.app.ctaStrategy.strategy.' + name.replace('.py', '') print 'loading {0}'.format(moduleName) try: # 使用importlib动态载入模块