[Scons-users] How to tell if a node is an explicit command-line argument?

William Blevins wblevins001 at gmail.com
Sat Jul 25 15:52:28 EDT 2015


Yes, but here is an example in case:

File "a.c" exists
File "b.c" exists

FS node representing "a.c" is node_a and representing "b.c" is node_b

If I run "scons" or "scons a.o", then node_b.is_explicit_target (or some
other function name) returns False.
If I run "scons b.o" or "scons a.o b.o", then node_b.is_explicit_target
return True for both cases, but node_b.is_explicit_target return True only
for the second case.

V/R,
William

On Sat, Jul 25, 2015 at 3:32 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> So you mean if scons was run as: scons a/b/c/d.exe ?
>
> On Sat, Jul 25, 2015 at 2:13 PM, William Blevins <wblevins001 at gmail.com>
> wrote:
>
>> Is there an easy way to determine if a Node was specified explicitly as a
>> command-line argument?
>>
>> V/R,
>> William
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150725/aa22147f/attachment.html>


More information about the Scons-users mailing list