[oe] getVar. setVar, "d", etc.
Rich Pixley
rich.pixley at palm.com
Wed Feb 6 02:29:08 UTC 2008
When does d change?
I've got the following bb file which produces results which puzzle me.
What I'm seeing is that the two values for d are different instances and
that the second function doesn't see the variable which was set in the
first because they're using different dictionaries.
--rich
def setting(d):
import bb
print "setting sets in ", d, "\n"
bb.data.setVar('FOO', 'bar', d)
return "setting"
X := ${@setting(d)}
def getting(d):
import bb
got = bb.data.getVar('FOO', d)
print "getting gets %s from " % (got), d, "\n"
return "getting"
Y := ${@getting(d)}
More information about the Openembedded-devel
mailing list