Skip to content

Commit

Permalink
Filter out empty extensions when parsing PATHEXT on Windows (#1528)
Browse files Browse the repository at this point in the history
Signed-off-by: Erwan Leroy <[email protected]>
  • Loading branch information
herronelou authored Sep 14, 2023
1 parent f94f339 commit 3ef6d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rez/utils/which.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _access_check(fn, mode):

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

# iterate over paths
seen = set()
Expand Down

0 comments on commit 3ef6d04

Please sign in to comment.