utils: rkisp1: gen-csc-table.py: Don't presume python3 location
diff mbox series

Message ID 20240227134113.23344-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit 26d9e36d3e057b91b5b1b161a38f23f19a0590e5
Headers show
Series
  • utils: rkisp1: gen-csc-table.py: Don't presume python3 location
Related show

Commit Message

Laurent Pinchart Feb. 27, 2024, 1:41 p.m. UTC
The python3 binary may be present in a location other than /usr/bin/.
Use /usr/bin/env to locate it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 utils/rkisp1/gen-csc-table.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Scally Feb. 27, 2024, 1:51 p.m. UTC | #1
Hi Laurent

On 27/02/2024 13:41, Laurent Pinchart wrote:
> The python3 binary may be present in a location other than /usr/bin/.
> Use /usr/bin/env to locate it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
> ---
>   utils/rkisp1/gen-csc-table.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/rkisp1/gen-csc-table.py b/utils/rkisp1/gen-csc-table.py
> index c47f50428904..ffc0370acaeb 100755
> --- a/utils/rkisp1/gen-csc-table.py
> +++ b/utils/rkisp1/gen-csc-table.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python3
> +#!/usr/bin/env python3
>   # SPDX-License-Identifier: GPL-2.0-or-later
>   # Copyright (C) 2022, Ideas on Board Oy
>   #
Stefan Klug Feb. 27, 2024, 1:57 p.m. UTC | #2
Am 27.02.24 um 14:41 schrieb Laurent Pinchart:
> The python3 binary may be present in a location other than /usr/bin/.
> Use /usr/bin/env to locate it.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>

> ---
>   utils/rkisp1/gen-csc-table.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/rkisp1/gen-csc-table.py b/utils/rkisp1/gen-csc-table.py
> index c47f50428904..ffc0370acaeb 100755
> --- a/utils/rkisp1/gen-csc-table.py
> +++ b/utils/rkisp1/gen-csc-table.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python3
> +#!/usr/bin/env python3
>   # SPDX-License-Identifier: GPL-2.0-or-later
>   # Copyright (C) 2022, Ideas on Board Oy
>   #

Patch
diff mbox series

diff --git a/utils/rkisp1/gen-csc-table.py b/utils/rkisp1/gen-csc-table.py
index c47f50428904..ffc0370acaeb 100755
--- a/utils/rkisp1/gen-csc-table.py
+++ b/utils/rkisp1/gen-csc-table.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2022, Ideas on Board Oy
 #