On 05/03/2017 06:27 PM, Dave Thaler wrote:
> The platform support wiki page<https://wiki.iotivity.org/platform_support> 
> has this:
> 
> 
> Use of os.path.join in SConscript files
> The path separator differs across platforms ('/' vs '\'). There has been some 
> confusion about when to use os.path.join in SConscript files. In short:
> 1.      Use os.path.join when constructing paths passed as arguments to a 
> compiler, such as when constructing CPPPATH or LIBS
> 2.      Don't use os.path.join when constructing paths interpreted by Python 
> itself, such as via an env.SConscript() call
> 
> 
> 
> Point 2 is what you're asking about, so no objection that's already the 
> guidance.
> 
> Separately point 1 might need elaboration since the "#..." syntax of a file 
> relative to the SConstruct file seems to be processed by scons, so the part 
> about "when constructing CPPPATH" may not be correct, maybe scons 
> pre-processes it before passing it to the compiler, in which case 
> os.path.join isn't needed there either.
> 
> If someone can explain how "#..." works for CPPPATH, I'm happy to update 
> point 1 above.
> 
> 
> 
> But for your question about point 2, please go ahead.
> 

this one was only for the SConscript calls, not for other paths.

Reply via email to