Skip to content

Commit 857eec6

Browse files
committed
cli: Replace os.path with pathlib method
1 parent 871eb2f commit 857eec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cloe_launch/exec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def teardown(self) -> None:
7676

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

0 commit comments

Comments
 (0)