[Scons-users] strange behavior with path as an array

Dirk Bächle tshortik at gmx.de
Thu Sep 12 14:55:01 EDT 2013


Hi Robert,

On 11.09.2013 00:32, robert zeigler wrote:

> I think I've uncovered an scons bug (or at least a not-well-documented

> "feature").

>

> [...]

>

>

> The problem is this line:

>

> path=['/usr/local/bin:/opt/bin:/bin:/usr/bin']

>


this isn't a supported form of specifying path lists in SCons (and we
don't claim anywhere in our documents and manuals that it would be). For
example, see section "4.3. Finding Libraries: the $LIBPATH Construction
Variable" in the UserGuide where the correct forms


> If it is specified as:

>

> path='/usr/local/bin:/opt/bin:/bin:/usr/bin'

>

> Or as:

>

> path=['/usr/local/bin', '/opt/bin', '/bin', '/usr/bin']

>


are mentioned the first time.

Since the offending form is not supported, it can't really be considered
as a bug. Please use the other two methods, they should work as advertised.

Best regards,

Dirk



More information about the Scons-users mailing list