ofono: use python 2.x in the test scripts
[scm/bb/meta-tizen.git] / meta-tizen-common-share / recipes-connectivity / ofono / ofono-extraconf.inc
index 8a6854c..e5ca1a8 100644 (file)
@@ -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
+}