Skip to content

Commit 3ef6d04

Browse files
authored
Filter out empty extensions when parsing PATHEXT on Windows (#1528)
Signed-off-by: Erwan Leroy <[email protected]>
1 parent f94f339 commit 3ef6d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rez/utils/which.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _access_check(fn, mode):
5353

5454
# PATHEXT is necessary to check on Windows
5555
pathext = env.get("PATHEXT", _default_pathext).split(os.pathsep)
56-
pathext = [x.lower() for x in pathext]
56+
pathext = [x.lower() for x in pathext if x]
5757

5858
# iterate over paths
5959
seen = set()

0 commit comments

Comments
 (0)