On 03/08/2016 11:24 PM, Burton, Ross wrote:

On 26 February 2016 at 01:45, Hongxu Jia <hongxu....@windriver.com <mailto:hongxu....@windriver.com>> wrote:

    +do_install_append_class-target() {
    +       sed -i -e "s:${PYTHON}:\`which python\`:g" \
    +           ${D}${bindir}/pygobject-codegen-2.0
    +}


If you're going to expect the shell to find the right python on the target there's no need to use `which python` as exec will search $PATH. However, we do know where Python on the target it: ${bindir}/python.


OK, I directly use '${bindir}/python' to instead.

//Hongxu

Ross

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to