This is correct. SCons only makes nodes it knows about. The Sconstruct is 
loaded by scons as a file node because it is called internally via the 
SConscript() call which turns all inputs to files nodes.

Other files in the same directory will not be seen unless you call some 
function to make them nodes. Add a Glob(‘*’) call and you will see all items in 
the current directory

Jason

From: Scons-dev [mailto:[email protected]] On Behalf Of Gary 
Oberbrunner
Sent: Wednesday, June 3, 2015 6:31 AM
To: SCons developer list
Subject: Re: [Scons-dev] How to traverse the graph after files are read



On Wed, Jun 3, 2015 at 6:54 AM, anatoly techtonik 
<[email protected]<mailto:[email protected]>> wrote:
But I have plenty of other files in current directory. Why those are
not included?

At the end of reading the SConstruct, i.e. before the build phase begins, SCons 
only creates Nodes for files it has been told about.  I think if you were to 
try this at the end of the build phase  (register a function with python 
atexit.register for instance) I think the other files would be there.  Though 
they might be only if "." is used as a source, I'm not sure.


--
Gary
_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev

Reply via email to