[Scons-users] Catching 'None' dependencies

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Apr 28 14:03:09 EDT 2014


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.


T

--
The early bird gets the worm. Moral: ewww...


More information about the Scons-users mailing list