mirror of https://gitlab.com/ita1024/waf.git
Better support for UNC paths in external tools
This commit is contained in:
parent
81ce0b6c17
commit
2b5377cd87
|
@ -80,9 +80,12 @@ def split_path_cygwin(path):
|
|||
re_sp = re.compile('[/\\\\]')
|
||||
def split_path_win32(path):
|
||||
if path.startswith('\\\\'):
|
||||
ret = re.split(re_sp, path)[2:]
|
||||
ret[0] = '\\' + ret[0]
|
||||
return ret
|
||||
if path.startswith('\\\\?'):
|
||||
path = path[4:]
|
||||
else:
|
||||
ret = re.split(re_sp, path)[2:]
|
||||
ret[0] = '\\\\' + ret[0]
|
||||
return ret
|
||||
return re.split(re_sp, path)
|
||||
|
||||
if sys.platform == 'cygwin':
|
||||
|
|
Loading…
Reference in New Issue