From 8a02429aa137e5d1d57fada65e4d701b3ca774fb Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 20 Nov 2015 17:12:46 +0200 Subject: [PATCH] ofono: use python 2.x in the test scripts Bug-Tizen: BTY-118 Change-Id: Ic85a5bcf71cd57a4c621ac9244f670cc2a3514bc Signed-off-by: Leon Anavi --- .../recipes-connectivity/ofono/ofono-extraconf.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta-tizen-common-share/recipes-connectivity/ofono/ofono-extraconf.inc b/meta-tizen-common-share/recipes-connectivity/ofono/ofono-extraconf.inc index 8a6854c..e5ca1a8 100644 --- a/meta-tizen-common-share/recipes-connectivity/ofono/ofono-extraconf.inc +++ b/meta-tizen-common-share/recipes-connectivity/ofono/ofono-extraconf.inc @@ -24,4 +24,12 @@ do_install() { -} \ No newline at end of file +} + +do_install_append() { + # Because python3-dbus module is currently not there, just use + # python 2.x in the ofono test scripts + for PYTHSCRIPT in `grep -rIl ${bindir}/python3 ${D}${libdir}/${PN}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT + done +} -- 2.7.4