[U-Boot] [RFC PATCH] patman: Do not hardcode python path

Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed.
Signed-off-by: Michal Simek michal.simek@xilinx.com --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patman.py b/tools/patman/patman.py index a8061a9..7a317c5 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. # -- 1.8.2.1

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/06/2013 10:11 AM, Michal Simek wrote:
Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed.
Signed-off-by: Michal Simek michal.simek@xilinx.com --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patman.py b/tools/patman/patman.py index a8061a9..7a317c5 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. #
Reviewed-by: Tom Rini trini@ti.com
- -- Tom

On Mon, May 6, 2013 at 8:14 AM, Tom Rini trini@ti.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/06/2013 10:11 AM, Michal Simek wrote:
Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed.
Signed-off-by: Michal Simek michal.simek@xilinx.com --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patman.py b/tools/patman/patman.py index a8061a9..7a317c5 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. #
Reviewed-by: Tom Rini trini@ti.com
Acked-by: Simon Glass sjg@chromium.org

On Mon, May 6, 2013 at 1:03 PM, Simon Glass sjg@chromium.org wrote:
On Mon, May 6, 2013 at 8:14 AM, Tom Rini trini@ti.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/06/2013 10:11 AM, Michal Simek wrote:
Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed.
Signed-off-by: Michal Simek michal.simek@xilinx.com --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patman.py b/tools/patman/patman.py index a8061a9..7a317c5 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. #
Reviewed-by: Tom Rini trini@ti.com
Acked-by: Simon Glass sjg@chromium.org
Applied to x86/patman.
participants (3)
-
Michal Simek
-
Simon Glass
-
Tom Rini