From 25df307ea18256bad7a1441e09ee322e4034fbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20P=C3=A9teut?= Date: Tue, 4 Apr 2023 09:40:39 +0200 Subject: [PATCH] dist/tools: Use `/usr/bin/env` to lookup Python. Fixes some Python scripts which didn't use `/usr/bin/env`. --- dist/tools/bmp/bmp.py | 2 +- dist/tools/ci/can_fast_ci_run.py | 2 +- dist/tools/compile_commands/compile_commands.py | 2 +- dist/tools/pyterm/testbeds/testbeds.py | 2 +- dist/tools/suit/suit-manifest-generator/setup.py | 2 +- dist/tools/suit/suit-manifest-generator/suit_tool/parse.py | 2 +- dist/tools/suit/suit-manifest-generator/suit_tool/sign.py | 2 +- dist/tools/usb-serial/ttys.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/tools/bmp/bmp.py b/dist/tools/bmp/bmp.py index 83eac8acf3e4..81dce765d658 100755 --- a/dist/tools/bmp/bmp.py +++ b/dist/tools/bmp/bmp.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg # diff --git a/dist/tools/ci/can_fast_ci_run.py b/dist/tools/ci/can_fast_ci_run.py index 56817d20decf..2de622333c20 100755 --- a/dist/tools/ci/can_fast_ci_run.py +++ b/dist/tools/ci/can_fast_ci_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Command line utility to check if only a subset of board / application combinations need to be build in the CI diff --git a/dist/tools/compile_commands/compile_commands.py b/dist/tools/compile_commands/compile_commands.py index 94fd7950d76a..e9e313c367da 100755 --- a/dist/tools/compile_commands/compile_commands.py +++ b/dist/tools/compile_commands/compile_commands.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Command line utility to generate compile_commands.json for RIOT applications """ diff --git a/dist/tools/pyterm/testbeds/testbeds.py b/dist/tools/pyterm/testbeds/testbeds.py index fc3852cd2589..32a89204d2b5 100644 --- a/dist/tools/pyterm/testbeds/testbeds.py +++ b/dist/tools/pyterm/testbeds/testbeds.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Copyright (C) 2014 Philipp Rosenkranz diff --git a/dist/tools/suit/suit-manifest-generator/setup.py b/dist/tools/suit/suit-manifest-generator/setup.py index 07df6a025db4..09e794b3e4ca 100644 --- a/dist/tools/suit/suit-manifest-generator/setup.py +++ b/dist/tools/suit/suit-manifest-generator/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright 2020 ARM Limited or its affiliates diff --git a/dist/tools/suit/suit-manifest-generator/suit_tool/parse.py b/dist/tools/suit/suit-manifest-generator/suit_tool/parse.py index bf75667fb081..efd2b56af65c 100644 --- a/dist/tools/suit/suit-manifest-generator/suit_tool/parse.py +++ b/dist/tools/suit/suit-manifest-generator/suit_tool/parse.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright 2019 ARM Limited or its affiliates diff --git a/dist/tools/suit/suit-manifest-generator/suit_tool/sign.py b/dist/tools/suit/suit-manifest-generator/suit_tool/sign.py index dad970be855e..6ce267699158 100644 --- a/dist/tools/suit/suit-manifest-generator/suit_tool/sign.py +++ b/dist/tools/suit/suit-manifest-generator/suit_tool/sign.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright 2019 ARM Limited or its affiliates diff --git a/dist/tools/usb-serial/ttys.py b/dist/tools/usb-serial/ttys.py index a22d4e9f17a7..fbf1ff904099 100755 --- a/dist/tools/usb-serial/ttys.py +++ b/dist/tools/usb-serial/ttys.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Command line utility to list and filter TTYs """