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

Milan Zamazal mzamazal at redhat.com
Tue Feb 27 13:14:46 CET 2024


python3 binary may be present in a location other than /usr/bin/.

Signed-off-by: Milan Zamazal <mzamazal at redhat.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



More information about the libcamera-devel mailing list