Skip to content

Commit

Permalink
Use pathlib to construct a path
Browse files Browse the repository at this point in the history
  • Loading branch information
aduane committed Oct 31, 2024
1 parent f0a9543 commit ce9547e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_runner/plugin_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def load_plugins(specified_plugin_paths: list[str] | None = None) -> None:
for plugin_path in plugin_paths:
# when we import plugins we'll use the module name directly so we need to add the plugin
# directory to the path
path_to_append = f"./{plugin_path.parent}"
path_to_append = pathlib.Path(".") / plugin_path.parent
sys.path.append(path_to_append)
else:
candidates = os.listdir(PLUGIN_DIRECTORY)
Expand Down

0 comments on commit ce9547e

Please sign in to comment.