python-smartpm: Have native smart use nativepython

Currently when trying to use smart via devshell or in the bitbake
environment, it will fail without inheriting pythonnative. Since the
native tools should "just work" use nativepython in the shebang line for
smart.

(From OE-Core rev: 4d4d9e8aa68a185b330ffbdb2e084b31fa6a6451)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Randy Witt 2015-07-10 14:03:21 -07:00 committed by Richard Purdie
parent 2ec97a252f
commit 76993861a1
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ add_native_wrapper() {
}
do_install_append_class-native() {
sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' ${D}${bindir}/smart
add_native_wrapper
}