Hi Gregg,

Looks at some of the SConscripts in the windows-port.
We had numerous weirdo path issues.

Sometimes, it was solved by using os.path.join  (even though os.path.join is 
controversial (because it diminishes readability))
Also, don?t be afraid to use:
src_dir = env.get(?SRC_DIR?)
And
build_dir = env.get(?BUILD_DIR?)

Just some food for thought..

~Daniel

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Gregg Reynolds
Sent: Thursday, June 9, 2016 9:36 AM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] scons strings - HELP!

I've spent most of the morning trying to figure out why the same code behaves 
differently in different SConscripts.  I surrender and throw myself on your 
mercy.

I'm trying to use # to get the absolute path of the root dir. It works just 
great in one file:

root_dir = Dir('#').abspath
resource_dir = root_dir + '/resource'
provisioning_env.AppendUnique(CPPPATH = [
                        resource_dir + '/csdk/stack/include',
                        resource_dir + '/csdk/stack/include/internal',
.... etc ...

Reply via email to