Update engine.py

This commit is contained in:
1122455801 2019-08-06 18:52:33 +08:00
parent 73e8ebd132
commit 8dfc72591a

View File

@ -755,7 +755,11 @@ class CtaEngine(BaseEngine):
if filename.endswith(".py"): if filename.endswith(".py"):
strategy_module_name = ".".join( strategy_module_name = ".".join(
[module_name, filename.replace(".py", "")]) [module_name, filename.replace(".py", "")])
self.load_strategy_class_from_module(strategy_module_name) elif filename.endswith(".pyd"):
strategy_module_name = ".".join(
[module_name, filename.replace(".pyd", "")])
self.load_strategy_class_from_module(strategy_module_name)
def load_strategy_class_from_module(self, module_name: str): def load_strategy_class_from_module(self, module_name: str):
""" """