summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/imager
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@hundeboll.net>2014-10-30 11:43:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-12 15:38:29 +0000
commitc0dafd310156f8765fd06bf3076acddd6f4db270 (patch)
tree9af4d744fcdab165971bc6b5705f3d0d40095df3 /scripts/lib/wic/imager
parent3e068831a17aca73703054aebb07eaabcb5d3dcf (diff)
downloadpoky-c0dafd310156f8765fd06bf3076acddd6f4db270.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|' (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>
Diffstat (limited to 'scripts/lib/wic/imager')
-rw-r--r--scripts/lib/wic/imager/baseimager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py
index 5bcd2f7529..e8305272a2 100644
--- a/scripts/lib/wic/imager/baseimager.py
+++ b/scripts/lib/wic/imager/baseimager.py
@@ -1,4 +1,4 @@
1#!/usr/bin/python -tt 1#!/usr/bin/env python -tt
2# 2#
3# Copyright (c) 2007 Red Hat Inc. 3# Copyright (c) 2007 Red Hat Inc.
4# Copyright (c) 2009, 2010, 2011 Intel, Inc. 4# Copyright (c) 2009, 2010, 2011 Intel, Inc.