From f4eeca53ed414ea9606c2468ff71dbaad8716e52 Mon Sep 17 00:00:00 2001 From: Aaron Boman Date: Thu, 4 Sep 2014 10:50:40 -0500 Subject: [PATCH] Prevent errors for double path separtors in PATH. --- src/util/path.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/path.py b/src/util/path.py index 222b96bfe..5bbf99cc6 100644 --- a/src/util/path.py +++ b/src/util/path.py @@ -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