diff --git a/vnpy_ctabacktester/engine.py b/vnpy_ctabacktester/engine.py index f71794e..f225b68 100644 --- a/vnpy_ctabacktester/engine.py +++ b/vnpy_ctabacktester/engine.py @@ -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}"