From 055335bf49dbcb8c149bdcd4e96004c68e6b6ece Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 11 Jan 2020 22:01:41 +0200 Subject: libcamera: gen-controls.py: Don't hardcode path to python interpreter The gen-controls.py script hardcodes the path to the python interpreter to /usr/bin/python3 in the first line of the script. This hardcodes usage of the host python3, even when building in cross-compilation environments that may ship their own version of python. Fix it by setting the interpreter to '/usr/bin/env python3'. Reported-by: Madhavan Krishnan Suggested-by: Nicolas Dufresne Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/gen-controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/gen-controls.py b/src/libcamera/gen-controls.py index 940386cc..2e5ac5c8 100755 --- a/src/libcamera/gen-controls.py +++ b/src/libcamera/gen-controls.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2019, Google Inc. # -- cgit v1.2.1