string is non-null before checking whether the first character is '#'.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3868
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
- 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
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