Re: [yocto] Not able to preserve a variable across two python functions in bbclass

2015-10-16 Thread Reshetova, Elena
>I'm afraid not, other than dependency relationships, task functions are executed independently and thus have their own scope. The way to do this sort of thing is to set the variable in the parent scope i.e. the recipe level (or above that, the configuration level). Thank you for your reply Paul

Re: [yocto] Not able to preserve a variable across two python functions in bbclass

2015-10-16 Thread Paul Eggleton
Hi Elena, On Friday 16 October 2015 09:52:28 Reshetova, Elena wrote: > I am having a very stupid issue, which I can't figure out. I am setting my > own variable from one python function (via d.setVar) and then attempting to > read it from another python function (via d.getVar). Both functions are

[yocto] Not able to preserve a variable across two python functions in bbclass

2015-10-16 Thread Reshetova, Elena
Hi, I am having a very stupid issue, which I can't figure out. I am setting my own variable from one python function (via d.setVar) and then attempting to read it from another python function (via d.getVar). Both functions are in the same bbclass. However, result of reading is always empty. B