diff options
author | Steven Knight <knight@baldmt.com> | 2005-06-10 11:29:54 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-06-10 11:29:54 (GMT) |
commit | 1b063dbb4859a3869d0e6637efc67086fc9497b2 (patch) | |
tree | c80eee8daa5f323d7113a2d5ff60a84ce3696b6f /src/engine | |
parent | ec2984ef7d6c0d510a186862758d346bc7a82fbd (diff) | |
download | SCons-1b063dbb4859a3869d0e6637efc67086fc9497b2.zip SCons-1b063dbb4859a3869d0e6637efc67086fc9497b2.tar.gz SCons-1b063dbb4859a3869d0e6637efc67086fc9497b2.tar.bz2 |
Fix DirScanner's handling of file names beginning with '#'.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Scanner/Dir.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/Dir.py b/src/engine/SCons/Scanner/Dir.py index ae20749..e89f12b 100644 --- a/src/engine/SCons/Scanner/Dir.py +++ b/src/engine/SCons/Scanner/Dir.py @@ -61,4 +61,6 @@ def scan(node, env, path=()): dont_scan = lambda k: not skip_entry.has_key(k) flist = filter(dont_scan, flist) flist.sort() - return map(node.Entry, flist) + # Add ./ to the beginning of the file name so that if it begins with a + # '#' we don't look it up relative to the top-level directory. + return map(lambda f, node=node: node.Entry('./'+f), flist) |