[Scons-users] Correct way to expand path variables
Gary Oberbrunner
garyo at oberbrunner.com
Mon Oct 14 10:35:26 EDT 2013
Hi Henry; use env.subst(str, target, source). You may also need to call
env.str2nodes.
On Mon, Oct 14, 2013 at 7:59 AM, Henry Gomersall <heng at cantab.net> wrote:
> Can someone advise me of the correct way to expand path variables.
>
> e.g. ['#foo', 'bar'] in a SConscript file in src/ goes to ['foo',
> 'src/bar'].
>
> This is for a scanner (the jinja scanner already discussed) to handle user
> defined paths properly.
>
> Cheers,
>
> Henry
> ______________________________**_________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/**mailman/listinfo/scons-users<http://four.pairlist.net/mailman/listinfo/scons-users>
>
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131014/94462b79/attachment-0001.htm
More information about the Scons-users
mailing list