ensure that the drive letters are properly handled when dealing with foreign files

This commit is contained in:
Thomas Nagy 2011-12-17 09:47:39 +01:00
parent b8c19f423a
commit 7604f729c3
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,8 @@ class Node(object):
cur = cur.parent
# the file is external to the current project, make a fake root in the current build directory
lst.reverse()
if lst and Utils.is_win32 and len(lst[0]) == 2 and lst[0].endswith(':'):
lst[0] = lst[0][0]
return self.ctx.bldnode.make_node(['__root__'] + lst)
def find_resource(self, lst):