<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 26 February 2016 at 01:45, Hongxu Jia <span dir="ltr">&lt;<a href="mailto:hongxu.jia@windriver.com" target="_blank">hongxu.jia@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":5h4" class="a3s" style="overflow:hidden">+do_install_append_class-target() {<br>
+       sed -i -e &quot;s:${PYTHON}:\`which python\`:g&quot; \<br>
+           ${D}${bindir}/pygobject-codegen-2.0<br>
+}</div></blockquote></div><br>If you&#39;re going to expect the shell to find the right python on the target there&#39;s no need to use `which python` as exec will search $PATH.  However, we do know where Python on the target it: ${bindir}/python.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>