[poky] Not able to set env var from anon function

Nithyakala Sainath nithisai at gmail.com
Thu Jul 9 22:21:14 PDT 2015


Thanks for your answer Ross.

But no, I already did that and tried again. The "randomvalue" is not
getting reflected. The variable still has "temp" in it.

Nithya.

On Thu, Jul 9, 2015 at 7:10 PM, Burton, Ross <ross.burton at intel.com> wrote:

>
> On 9 July 2015 at 13:12, Nithyakala Sainath <nithisai at gmail.com> wrote:
>
>> But d.setVar("TEMPDIR", "randomvalue") in place of os.environ does the
>> mgic. Why can't we manipulate the environmental variable using os.environ ?
>
>
> Because in "echo ${TEMPDIR}" the variable is expanded by bitbake, not the
> shell.  Use $TEMPDIR.
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20150710/d2700666/attachment.html>


More information about the poky mailing list