diff options
author | Martin Hundebøll <martin@hundeboll.net> | 2014-10-30 11:43:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-31 10:10:23 +0000 |
commit | d6e0ea59b28877b4136f8c310287dc11aff5a410 (patch) | |
tree | fa4f454a28d6d6f1bed4ed90c6741f2d02a2913b /bitbake/lib/progressbar.py | |
parent | be22ea03145581699ffe7a292d5b94f53e13a9cf (diff) | |
download | poky-d6e0ea59b28877b4136f8c310287dc11aff5a410.tar.gz |
bitbake: progressbar: use '/usr/bin/env' in shebangs with python
To support yocto on systems with python3 as default version, scripts
should use /usr/bin/env python in the shebang, as this allows the use of
a fake env to mimic python2 as default version.
This patch simply replaces occurrences of #!/usr/bin/python with
#!/usr/bin/env python and was done with this oneliner:
git grep -lE '^#!/usr/bin/python' | xargs \
sed -i 's|/usr/bin/python|/usr/bin/env python|'
(Bitbake rev: 0f9823adb7832c4ca3b2985391473aa6e8c22148)
Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/progressbar.py')
-rw-r--r-- | bitbake/lib/progressbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/progressbar.py b/bitbake/lib/progressbar.py index b668647a36..114cdc16ba 100644 --- a/bitbake/lib/progressbar.py +++ b/bitbake/lib/progressbar.py | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/python | 1 | #!/usr/bin/env python |
2 | # -*- coding: iso-8859-1 -*- | 2 | # -*- coding: iso-8859-1 -*- |
3 | # | 3 | # |
4 | # progressbar - Text progressbar library for python. | 4 | # progressbar - Text progressbar library for python. |