summaryrefslogtreecommitdiff
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-01-01 18:36:08 +0000
committerSteven Knight <knight@baldmt.com>2009-01-01 18:36:08 +0000
commita72d374e08afc3c20c658b496752353d4d0c7f01 (patch)
tree7b719e56be4710f6c185bbffbbd4e34100a268bf /src/engine/SCons/Environment.py
parent66899a4df3898711f2b88c75894136b9a3d931ee (diff)
downloadscons-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 '#'.
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py2
1 files changed, 1 insertions, 1 deletions
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