Skip to content

Commit

Permalink
Merge pull request #3 from noranhe/main
Browse files Browse the repository at this point in the history
fix issue 1
  • Loading branch information
vnpy authored Aug 15, 2021
2 parents 54b7a67 + 0876183 commit 971ca10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy_ctabacktester/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def load_strategy_class_from_folder(self, path: Path, module_name: str = ""):
Load strategy class from certain folder.
"""
for suffix in ["py", "pyd", "so"]:
pathname: str = os.path.join(str(path), f"*.{suffix}")
pathname: str = str(path.joinpath(f"*.{suffix}"))
for filepath in glob(pathname):
filename: str = Path(filepath).stem
name: str = f"{module_name}.{filename}"
Expand Down

0 comments on commit 971ca10

Please sign in to comment.