| commit | 093bb9972c487f85fbf709f4fced6ab62b3f9943 | [log] [tgz] |
|---|---|---|
| author | Carles Cufi <carles.cufi@nordicsemi.no> | Tue Oct 28 13:57:17 2025 +0100 |
| committer | Johan Hedberg <johan.hedberg@gmail.com> | Thu Oct 30 15:13:53 2025 +0200 |
| tree | 12038fdae080c6e50f1df6bc12bea6bef0d9f7ea | |
| parent | cd8e773b325722e5d7b67427f3ebb88bd971b2f5 [diff] |
scripts: compliance: Harden the execution of npx Instead of relying on various exceptions that can happen when one tries to execute a program that is not installed in the system (typically FileNotFoundError but sometimes PermissionError), use shutil.which() to ensure the npx executable is available before running it. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>