Skip to content

Commit b4b8039

Browse files
authored
Ensure launcher suffix always has a dot. (#76)
Fixes #75
1 parent 550fb82 commit b4b8039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/manage/install_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def _calc(prefix, filename, calculate_dest=calculate_dest):
216216

217217

218218
def _if_exists(launcher, plat):
219-
plat_launcher = launcher.parent / f"{launcher.stem}{plat}{launcher.suffix}"
219+
suffix = "." + launcher.suffix.lstrip(".")
220+
plat_launcher = launcher.parent / f"{launcher.stem}{plat}{suffix}"
220221
if plat_launcher.is_file():
221222
return plat_launcher
222223
return launcher

0 commit comments

Comments
 (0)