Merge pull request #1999 from 1122455801/pyd_strategy_support

Add pyd strategy support
This commit is contained in:
vn.py 2019-08-06 22:24:46 +08:00 committed by GitHub
commit 7845fd7a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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