Skip to content

Commit

Permalink
cli: Replace os.path with pathlib method
Browse files Browse the repository at this point in the history
  • Loading branch information
cassava committed May 6, 2024
1 parent 34c3399 commit 7e6f5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cloe_launch/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def teardown(self) -> None:

def _find_plugin_setups(file: Path) -> List[Type[PluginSetup]]:
"""Open a Python module and find all PluginSetups."""
name = os.path.splitext(file)[0]
name = str(file.with_suffix(""))
spec = importlib.util.spec_from_file_location(name, file)
if spec is None:
return []
Expand Down

0 comments on commit 7e6f5fa

Please sign in to comment.