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 []