diff options
author | Martin Hundebøll <martin@hundeboll.net> | 2014-10-30 11:43:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-12 15:35:42 +0000 |
commit | 6d3de22a19657a413e01d7bb5fd74d16c00dc696 (patch) | |
tree | 74e6ae9e3056e4cbe39fd1351b216eb631975a02 /scripts/pybootchartgui | |
parent | 33b7885ecdc8774e34ac3534ec49fed6ffdb3916 (diff) | |
download | openembedded-core-contrib-6d3de22a19657a413e01d7bb5fd74d16c00dc696.tar.gz |
scripts: 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|'
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 'scripts/pybootchartgui')
-rwxr-xr-x | scripts/pybootchartgui/pybootchartgui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui.py b/scripts/pybootchartgui/pybootchartgui.py index 947ce103380..7ce1a5be40d 100755 --- a/scripts/pybootchartgui/pybootchartgui.py +++ b/scripts/pybootchartgui/pybootchartgui.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # This file is part of pybootchartgui. |