]> code.ossystems Code Review - openembedded-core.git/commit
scripts: use '/usr/bin/env' in shebangs with python
authorMartin Hundebøll <martin@hundeboll.net>
Thu, 30 Oct 2014 10:43:24 +0000 (11:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:17:18 +0000 (10:17 +0000)
commit129dff8cc5a6cbfa2a3f0d21aeb16efabe5b4575
tree0e302f15270f5cb4c715b8dd4673a54e38950ccb
parenta52a4dd06e9c768292725ef57031f69bddcfdffe
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>
15 files changed:
scripts/lib/wic/conf.py
scripts/lib/wic/creator.py
scripts/lib/wic/imager/baseimager.py
scripts/lib/wic/kickstart/__init__.py
scripts/lib/wic/kickstart/custom_commands/micboot.py
scripts/lib/wic/kickstart/custom_commands/micpartition.py
scripts/lib/wic/msger.py
scripts/lib/wic/plugin.py
scripts/lib/wic/pluginbase.py
scripts/lib/wic/utils/errors.py
scripts/lib/wic/utils/fs_related.py
scripts/lib/wic/utils/misc.py
scripts/lib/wic/utils/partitionedfs.py
scripts/lib/wic/utils/runner.py
scripts/pybootchartgui/pybootchartgui.py