<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 8, 2015 at 6:16 AM, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@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=":18l" class="a3s" style="overflow:hidden"> oe_runconf () {<br>
-       cfgscript=&quot;${S}/configure&quot;<br>
+       # Use relative path for S to avoid buildpaths in files<br>
+       relative_s=`python -c &quot;import os; print os.path.relpath(&#39;${S}&#39;, &#39;.&#39;)&quot;`<br>
+       cfgscript=&quot;$relative_s/configure&quot;</div></blockquote></div><br>Why not just use inline python here, rather than calling out to an external python process at task execution time?<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>