diff --git a/scripts/west_commands/sign.py b/scripts/west_commands/sign.py index 52bd5a9ecae..74c48b26fe6 100644 --- a/scripts/west_commands/sign.py +++ b/scripts/west_commands/sign.py @@ -261,7 +261,7 @@ class ImgtoolSigner(Signer): format(args.tool_path)) tool_path = args.tool_path else: - tool_path = shutil.which('imgtool') + tool_path = shutil.which('imgtool') or shutil.which('imgtool.py') if not tool_path: log.die('imgtool not found; either install it', '(e.g. "pip3 install imgtool") or provide --tool-path')