From patchwork Tue Jan 14 11:44:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2644 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D392160747 for ; Tue, 14 Jan 2020 12:44:46 +0100 (CET) Received: from pendragon.ideasonboard.com (cpc108967-cmbg20-2-0-cust420.5-4.cable.virginm.net [81.101.7.165]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5503E2F9; Tue, 14 Jan 2020 12:44:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1579002286; bh=bUIRHMBJLifVI0XWHveWl1PgLoKa6ZtxrXoSPAAl54M=; h=From:To:Cc:Subject:Date:From; b=XRtaiAZ6WmlVPVLPJFjs4NQeT7kSFMpjx7UVqDG+OYSAor2kaTSPV7aSWowqHc4vq BqLxJlK/UhOv0rHesDcToLq/ThlNYLI+hCMk5mGZU4pZ6oeuSIaul/rRfiScRW1gcN Sy5fdUtxMWPVQD7/atJdv81Qs1Hk3HLErPBGeU1k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Madhavan Krishnan Date: Tue, 14 Jan 2020 13:44:30 +0200 Message-Id: <20200114114430.5910-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: gen-controls.py: Don't hardcode path to python interpreter X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2020 11:44:47 -0000 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(-) diff --git a/src/libcamera/gen-controls.py b/src/libcamera/gen-controls.py index 940386cc68c8..2e5ac5c81cca 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. #