[Scons-users] Catching 'None' dependencies

Dirk Bächle tshortik at gmx.de
Mon Apr 28 14:21:20 EDT 2014


On 28.04.2014 20:03, H. S. Teoh wrote:

> On Mon, Apr 28, 2014 at 10:55:46AM -0700, H. S. Teoh wrote:

> [...]

>> The problem is caused by the scanner expanding a list of #include's

>> using SCons' FindFile method, which has the quirky behaviour where if

>> the file being searched for isn't found in any of the search

>> directories, it will return '/path/to/None' where '/path/to/' appears to

>> be the path of the source file being scanned.

> [...]

>

> Correction: FindFile actually returns a Python None object, which for

> whatever reason gets printed out as '/path/to/None'. So the fault is

> really mine -- the scanner should check for None instead of blindly

> including it in the list comprehension that returns the list of nodes.

>

> Sorry for the confusion. My bad.


No problem. I'm glad to hear that you found the cause, and can now
continue with your actual development. ;)

Good luck with that,

Dirk



More information about the Scons-users mailing list