patman: Do not hardcode python path
RFC PATCH 1/1 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.
--- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/patman/patman.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. #
--
1.8.2.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130506/56aee3dc/attachment.pgp>
RFC PATCH 1/1 patman: Do not hardcode python path
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Michal Simek
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 <[email protected]> ---
tools/patman/patman.py| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/patman/patman.py index renamed from tools/patman/patman.py +0
-0
Quoted 4 lines
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. #
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJRh7q0AAoJENk4IS6UOR1Wd50QAICcAr93mMDbGeSdnw4ve3+H 4JvdRPbrmEkDbp/8hl9LYtSgeHZKX80QW4g+A+pvzOlhrESZqnFD3qCX54BUajlF 7YjgslhGYaofYtJFPz/3j5vl4kvykAoCrZTYDSNONTlw/Bl+4QKhPdeaKmNYBRm+ 8UIgABLyfcT/l7y3B9NZUEbsElsyIL2MKf/xZ47EBbl3a0uOFLFI0hOIqazIIbak 2BSs5UY+aA9sLCKQnddKkz8gPgCjZE9qLUfKdClI1VBn+f0YdkyX0H6eJN0nNOGM MSYP7d/fgVI6aGZgZ/l1ZQffOK8c4Ryo/CVUEaHtVJQzQXoBqVlnEwWULZWIIQrP PeC+Vrgcug/ZFdiHdOnaXjrWW6H5j2//uDg9iCkVYVjSdMAwClP0FEaQlpt8th8j HFFspFqoQfDRPu2DufmZv+tzmsmkRUZNQuUn3g87b1Z+d2WvMrBB6X2NwEf8977c djw6WmzmesoT0RZxChb7yXmUKl06qkFfyIChYDru0mJW9D32fMfqjqpo3XFrrNML w25MCBVvONyIwNtBeeVUb5Jj/npX58v9uuTv3B3YRGBHFlXwLcoog0gnN5msMRS5 jO+5JyV0kFeSXc/VKP1H8kY4suAieUF/10s6OnzAUlZu12jhTmfhax0IDrXudbq3 UXrn3T92b7I5yPg/NbQ2
=nSTp
-----END PGP SIGNATURE-----
RFC PATCH 1/1 patman: Do not hardcode python path
Quoted 13 lines · Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 9 lines · Michal Simek
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 <[email protected]> ---
tools/patman/patman.py| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Quoted 5 lines
tools/patman/patman.py index renamed from tools/patman/patman.py +0
-0a8061a9..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 <[email protected]>
Simon Glass
AppliedRFC PATCH 1/1 patman: Do not hardcode python path
Quoted 22 lines · Simon Glass
Quoted 13 lines · Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 9 lines · Michal Simek
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 <[email protected]> ---
tools/patman/patman.py| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 7 lines
Quoted 5 lines
tools/patman/patman.py index renamed from tools/patman/patman.py +0
-0a8061a9..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 <[email protected]>
Quoted 1 line
Acked-by Simon Glass <[email protected]>
Applied to x86/patman.