diff mbox

[U-Boot] tools: binman: Use /usr/bin/env to find python executable

Message ID 20161227213608.76169-1-manu@bidouilliste.com
State Accepted
Commit 6d799d04a843b85b0842b7c266a16b3c515b8c35
Delegated to: Tom Rini
Headers show

Commit Message

Emmanuel Vadot Dec. 27, 2016, 9:36 p.m. UTC
Some OS (all BSD and probably others) do not have python in /usr/bin
but in another directory.
It is a common usage to use /usr/bin/env python as shebang for python
scripts so use this for binman.

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
---
 tools/binman/binman.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Jan. 3, 2017, 1:04 a.m. UTC | #1
On Tue, Dec 27, 2016 at 10:36:08PM +0100, Emmanuel Vadot wrote:

> Some OS (all BSD and probably others) do not have python in /usr/bin
> but in another directory.
> It is a common usage to use /usr/bin/env python as shebang for python
> scripts so use this for binman.
> 
> Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 7fb67cb25f..4cc431fbbe 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (c) 2016 Google, Inc
 # Written by Simon Glass <sjg@chromium.org>