From e1f6f0d8a5e2122d590f86e1e3dd203b3585eb4b Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Tue, 2 Jul 2024 14:51:26 -0600 Subject: [PATCH] Fix python3 shebang paths Using absolute paths can result in the wrong python3 binary being used, such as when cross compiling using a non-system python3. Use the normal python3 env shebang instead. Signed-off-by: James Hilliard --- contrib/reformat-code.py | 2 +- efi/generate_binary.py | 2 +- efi/generate_sbat.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/reformat-code.py b/contrib/reformat-code.py index 65a4ac4..ff6014d 100755 --- a/contrib/reformat-code.py +++ b/contrib/reformat-code.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # Copyright (C) 2017 Dell Inc. # diff --git a/efi/generate_binary.py b/efi/generate_binary.py index 443472a..a4611bb 100755 --- a/efi/generate_binary.py +++ b/efi/generate_binary.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # Copyright (C) 2021 Javier Martinez Canillas # Copyright (C) 2021 Richard Hughes diff --git a/efi/generate_sbat.py b/efi/generate_sbat.py index 6c904e5..b9b80ac 100755 --- a/efi/generate_sbat.py +++ b/efi/generate_sbat.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # Copyright (C) 2021 Javier Martinez Canillas # Copyright (C) 2021 Richard Hughes