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 ...
>From this I get absolute paths for my -I flags.
I try the same thing in another file and the resource_dir just disappears.
Not only that, but so do dot prefixes (e.g. '../../foo/bar' ends up as
-Ifoo/bar).
I have no idea what's going on.
Thanks,
Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160609/e8127c32/attachment.html>