diff options
author | Steven Knight <knight@baldmt.com> | 2009-01-01 18:36:08 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-01-01 18:36:08 +0000 |
commit | a72d374e08afc3c20c658b496752353d4d0c7f01 (patch) | |
tree | 7b719e56be4710f6c185bbffbbd4e34100a268bf | |
parent | 66899a4df3898711f2b88c75894136b9a3d931ee (diff) | |
download | scons-a72d374e08afc3c20c658b496752353d4d0c7f01.tar.gz |
Have the {Append,Prepend}ENVPath() canonicalization make sure there's the
string is non-null before checking whether the first character is '#'.
-rw-r--r-- | src/CHANGES.txt | 5 | ||||
-rw-r--r-- | src/engine/SCons/Environment.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index d5e1bf9f..c525a843 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -25,6 +25,11 @@ RELEASE 1.X - XXX - Document TestCommon.shobj_prefix variable. + From Gary Oberbrunner: + + - Allow AppendENVPath() and PrependENVPath() to interpret '#' + for paths relative to the top-level SConstruct directory. + From Greg Spencer: - Support implicit dependency scanning of files encoded in utf-8 diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index c2a7c76a..338ed37f 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -1203,7 +1203,7 @@ class Base(SubstitutionEnvironment): def _canonicalize(self, path): if not SCons.Util.is_String(path): # typically a Dir path = str(path) - if path[0] == '#': + if path and path[0] == '#': path = str(self.fs.Dir(path)) return path |