[Scons-users] exporting environment to SConscript
Russel Winder
russel at winder.org.uk
Thu Jun 21 02:22:59 EDT 2012
On Wed, 2012-06-20 at 21:04 -0700, Eric Smith wrote:
> Evan Driscoll wrote:
> > The 'exports' keyword argument can be a dictionary;
>
> Thanks! That's exactly what I was looking for. I thought I'd seen a
> suitable feature in the docs somewhere, but when I needed it I couldn't
> find it.
I think Evan is right the documentation is a bit lacking in this area.
The exports keyword parameter (with which the Export call is associated)
can take a single string value which is the name of a variable in the
script or a dictionary where the values (not keys) are names of
variables in a script. The Import call uses these to create copies of
the values referred to as variables (named by the dictionary keys) in
the SConscript. Since variables are keys in dictionaries this is all
self consistent at the Python level. with the Export. Basically the
exports/Export/Import/Return system is a way of parameter passing and
value returning such that SConscripts can be treated as function calls
from SConstructs – and other stuff.
If someone could make a start at expanding the documentation on this,
even if it is just placing questions in appropriate places and then
flagging reference here, that will create an impetus for people to chip
in answers and corrections when they can. I'm a bit short of time from
now till end of next week.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20120621/fe53b93a/attachment.pgp>
More information about the Scons-users
mailing list