From 857eec683b46ddeaeac00835bdcbc07b2b54c89f Mon Sep 17 00:00:00 2001 From: Benjamin Morgan Date: Mon, 6 May 2024 11:31:29 +0200 Subject: [PATCH] cli: Replace os.path with pathlib method --- cli/cloe_launch/exec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cloe_launch/exec.py b/cli/cloe_launch/exec.py index 8596f4bd..67429657 100644 --- a/cli/cloe_launch/exec.py +++ b/cli/cloe_launch/exec.py @@ -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 []