diff --git a/har2locust/__main__.py b/har2locust/__main__.py index 3c0d38b..917ec9c 100644 --- a/har2locust/__main__.py +++ b/har2locust/__main__.py @@ -48,7 +48,8 @@ def load_plugins(plugins: list[str] = [], disable_plugins: list[str] = []): sys.path.append(os.path.curdir) # accept plugins by relative path for plugin in default_and_extra_plugins: - import_path = plugin.replace("/", ".").rstrip(".py") + # in windows OS print(plugin) echo har2locust\default_plugins\1_resourcefilter.py + import_path = plugin.replace("/", ".").replace("\\", ".").rstrip(".py") importlib.import_module(import_path) logging.debug("imported " + import_path) logging.debug(f"loaded plugins {default_and_extra_plugins}")