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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user