[1/2] utils: checkstyle.py: Don't presume python3 location
diff mbox series

Message ID 20240227121448.656200-2-mzamazal@redhat.com
State Accepted
Commit 08556380b88999cdb8dd52918f2006f4419f57c4
Headers show
Series
  • Minor fixes of checkstyle.py
Related show

Commit Message

Milan Zamazal Feb. 27, 2024, 12:14 p.m. UTC
python3 binary may be present in a location other than /usr/bin/.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
---
 utils/checkstyle.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Feb. 27, 2024, 12:28 p.m. UTC | #1
Hi Milan,

Thank you for the patch.

On Tue, Feb 27, 2024 at 01:14:46PM +0100, Milan Zamazal wrote:
> python3 binary may be present in a location other than /usr/bin/.
> 
> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  utils/checkstyle.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/checkstyle.py b/utils/checkstyle.py
> index 836ea80f..af553cfd 100755
> --- a/utils/checkstyle.py
> +++ b/utils/checkstyle.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python3
> +#!/usr/bin/env python3
>  # SPDX-License-Identifier: GPL-2.0-or-later
>  # Copyright (C) 2018, Google Inc.
>  #
Kieran Bingham Feb. 27, 2024, 1:10 p.m. UTC | #2
Quoting Milan Zamazal (2024-02-27 12:14:46)
> python3 binary may be present in a location other than /usr/bin/.
> 
> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  utils/checkstyle.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/checkstyle.py b/utils/checkstyle.py
> index 836ea80f..af553cfd 100755
> --- a/utils/checkstyle.py
> +++ b/utils/checkstyle.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python3
> +#!/usr/bin/env python3
>  # SPDX-License-Identifier: GPL-2.0-or-later
>  # Copyright (C) 2018, Google Inc.
>  #
> -- 
> 2.42.0
>

Patch
diff mbox series

diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index 836ea80f..af553cfd 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2018, Google Inc.
 #