[Scons-users] use of abspath

Mats Wichmann mats at wichmann.us
Fri Aug 11 15:55:44 EDT 2017


On 08/11/2017 01:50 PM, Bill Deegan wrote:
> if 'caconnectivitymanager.c' is in foo/bar/src, then if you change to:
> 
>     ca_common_src = [File(f) for f in [
>         'caconnectivitymanager.c',
>         'cainterfacecontroller.c',
>         'camessagehandler.c',
>         'canetworkconfigurator.c',
>         'caprotocolmessage.c',
>         'caqueueingthread.c',
>         'caretransmission.c',
>     ]]
> 
> You can probably skip all the rest of the file path munging.
> File will assume the path specified is relative to current SConscript (Or
> SConstruct if that's where it's invoked)

Aha!  Okay, that will simplify things.




More information about the Scons-users mailing list