2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Prevent errors for double path separtors in PATH.

This commit is contained in:
Aaron Boman
2014-09-04 10:50:40 -05:00
parent 71da5c4d8c
commit f4eeca53ed

View File

@@ -418,7 +418,11 @@ def programs_path ():
for elem in raw:
if elem:
for p in elem.split(os.path.pathsep):
result.append(make(p))
# it's possible that the user's Path has
# double path separators, thus it is possible
# for p to be an empty string.
if p:
result.append(make(p))
return result