[Scons-users] Question about paths and shared libraries with SCons

Chris BeHanna chris at behanna.org
Tue Aug 21 15:31:40 EDT 2012


On Aug 21, 2012, at 11:12 , Gary Oberbrunner <garyo at oberbrunner.com> wrote:


> On Tue, Aug 21, 2012 at 11:46 AM, Chris BeHanna <chris at behanna.org> wrote:

>> Consider the difference between

>>

>> env.Append(LIBPATH = ['foo'])

>>

>> and

>>

>> env.Append(LIBPATH = [os.path.join('#', 'foo')])

>>

>> This is a gotcha that will drive you nuts.

>

> (At least, in the 2nd case you can just say '#foo' to be shorter.)

>

> But I think both should work; it should convert it into a Node

> appropriately. Remember, all commands are executed from top level

> (unless you use chdir=1; if that's your use case then yeah I can see

> why you'd need your solution.) There's probably a corner case I'm

> missing though. :-)


I never used chdir=1. It may have been a bug in 1.2.0 that I was working around (that was the then-current release when I rewrote the build system at $WORK). Once I found something that worked for me, I just stuck with it.

--
Chris BeHanna
chris at behanna.org


More information about the Scons-users mailing list