<div dir="ltr">Hello all,<div><br></div><div>I was playing with environmental variables and datastore that I fell into this situation:</div><div><br></div><div>In a reccipe <a href="http://a.bb">a.bb</a></div><div><br></div><div>export TEMPDIR = "temp"</div><div><br></div><div>python() {</div><div>Â Â Â Â os.environ["TEMPDIR"] = "randomvalue"</div><div>}</div><div><br></div><div>do_compile() {</div><div>Â Â Â Â echo ${TEMPDIRÂ }Â </div><div>}</div><div><br></div><div>gives me "temp" as the answer. I was expecting "randomvalue". Can I not modify the environmental variables and create new ones in anon functions ?</div><div><br></div><div>But d.setVar("TEMPDIR", "randomvalue") in place of os.environ does the mgic. Why can't we manipulate the environmental variable using os.environ ?</div><div><br></div><div>In bitbake.conf, we see that we can get env vars using os.getenv.</div><div><br></div><div>Thanks,</div><div>Nithyakala.</div></div>