From 9a2a3d0c70547c78c2dd7d6a8ea2f94bd3117d7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Hundeb=C3=B8ll?= Date: Thu, 30 Oct 2014 11:43:24 +0100 Subject: [PATCH] bitbake: progressbar: use '/usr/bin/env' in shebangs with python MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Patrick Ohly --- bitbake/lib/progressbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/progressbar.py b/bitbake/lib/progressbar.py index b668647..114cdc1 100644 --- a/bitbake/lib/progressbar.py +++ b/bitbake/lib/progressbar.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # # progressbar - Text progressbar library for python. -- 2.7.4