summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-11-09 04:16:29 (GMT)
committerSteven Knight <knight@baldmt.com>2003-11-09 04:16:29 (GMT)
commit2016f443bfe0ffc6a380e24dc33ccee793a5ec96 (patch)
tree87235f156582c560b8c9d2b3481572e50f7d5a50 /src/engine/SCons/Node/FS.py
parent8d05f7d15635479a0ea1aad38c4dfb52bc1e1a14 (diff)
downloadSCons-2016f443bfe0ffc6a380e24dc33ccee793a5ec96.zip
SCons-2016f443bfe0ffc6a380e24dc33ccee793a5ec96.tar.gz
SCons-2016f443bfe0ffc6a380e24dc33ccee793a5ec96.tar.bz2
Fix specifying a root directory with just the drive string (e.g. C:).
Diffstat (limited to 'src/engine/SCons/Node/FS.py')
-rw-r--r--src/engine/SCons/Node/FS.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index bce5364..e7ab14a 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -646,6 +646,9 @@ class FS:
path_comp = path_comp[1:]
else:
path_comp = [ path_first, ] + path_comp[1:]
+
+ if not path_comp:
+ path_comp = ['']
# Lookup the directory
for path_name in path_comp[:-1]: