On 8 October 2015 at 22:00, Christopher Larson <clar...@kergoth.com> wrote:

> +       # Use relative path for S to avoid buildpaths in files
>>> +       relative_s=`python -c "import os; print os.path.relpath('${S}',
>>> '.')"`
>>> +       cfgscript="$relative_s/configure"
>>>
>>
>> Why not just use inline python here, rather than calling out to an
>> external python process at task execution time?
>
>
> Oh, nevermind, of course oe_runconf can be run from any number of paths :)


Why not use realpath?

ross@flashheart ~/Yocto/poky/meta/recipes-devtools/qemu (mut)
$ realpath --relative-to=. ~/Yocto/poky/meta/recipes-support/mpfr/
../../recipes-support/mpfr

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

Reply via email to