diff options
author | Steven Knight <knight@baldmt.com> | 2002-04-24 16:47:04 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-04-24 16:47:04 (GMT) |
commit | 6238fcb0f5fb8cd4aef9d956414618dbe5aa4072 (patch) | |
tree | 9924c270426af61eb3ce8b895331b1f2357433c3 /src | |
parent | 781d8e41ced624697e40cdcd95e99687e1e11356 (diff) | |
download | SCons-6238fcb0f5fb8cd4aef9d956414618dbe5aa4072.zip SCons-6238fcb0f5fb8cd4aef9d956414618dbe5aa4072.tar.gz SCons-6238fcb0f5fb8cd4aef9d956414618dbe5aa4072.tar.bz2 |
Fix for relative CPPPATH directories in subsidiary SConscript files. (Charles Crain)
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 3 | ||||
-rw-r--r-- | src/engine/SCons/Node/__init__.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index ce10511..67a0574 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -69,6 +69,9 @@ RELEASE 0.07 - - Make top-relative '#/dir' lookups work like '#dir'. + - Fix for relative CPPPATH directories in subsidiary SConscript files + (broken in 0.06). + From Steven Knight: - Fix so that -c -n does *not* remove the targets! diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py index db52b3e..68e4c73 100644 --- a/src/engine/SCons/Node/__init__.py +++ b/src/engine/SCons/Node/__init__.py @@ -88,8 +88,8 @@ class Node: def generate_build_args(self): dict = copy.copy(self.env.Dictionary()) - if hasattr(self, 'dir'): - auto = self.env.autogenerate(dir = self.dir) + if hasattr(self, 'cwd'): + auto = self.env.autogenerate(dir = self.cwd) else: auto = self.env.autogenerate() dict.update(auto) |