From 55920faa69eaa96c8bc399464624e9b21cfdaa65 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 7 May 2025 18:33:21 +0100 Subject: [PATCH] Ensure launcher suffix always has a dot. Fixes #75 --- src/manage/install_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/manage/install_command.py b/src/manage/install_command.py index 0a1958a..5dea298 100644 --- a/src/manage/install_command.py +++ b/src/manage/install_command.py @@ -216,7 +216,8 @@ def _calc(prefix, filename, calculate_dest=calculate_dest): def _if_exists(launcher, plat): - plat_launcher = launcher.parent / f"{launcher.stem}{plat}{launcher.suffix}" + suffix = "." + launcher.suffix.lstrip(".") + plat_launcher = launcher.parent / f"{launcher.stem}{plat}{suffix}" if plat_launcher.is_file(): return plat_launcher return launcher