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:17:18 +0000 |
commit | 129dff8cc5a6cbfa2a3f0d21aeb16efabe5b4575 (patch) | |
tree | 0e302f15270f5cb4c715b8dd4673a54e38950ccb /scripts/lib/wic/msger.py | |
parent | a52a4dd06e9c768292725ef57031f69bddcfdffe (diff) | |
download | openembedded-core-129dff8cc5a6cbfa2a3f0d21aeb16efabe5b4575.tar.gz openembedded-core-129dff8cc5a6cbfa2a3f0d21aeb16efabe5b4575.tar.bz2 openembedded-core-129dff8cc5a6cbfa2a3f0d21aeb16efabe5b4575.zip |
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|'
(From OE-Core rev: 6d3de22a19657a413e01d7bb5fd74d16c00dc696)
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts/lib/wic/msger.py')
-rw-r--r-- | scripts/lib/wic/msger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py index 9afc85be93..9f557e7b9a 100644 --- a/scripts/lib/wic/msger.py +++ b/scripts/lib/wic/msger.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/env python -tt # vim: ai ts=4 sts=4 et sw=4 # # Copyright (c) 2009, 2010, 2011 Intel, Inc. |