Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f7e137

Browse files
author
Skip Montanaro
committed
fix for bug 773020 - splitting PATH should use os.pathsep
1 parent bd9f520 commit 7f7e137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/scripts/which.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def msg(str):
1414
sys.stderr.write(str + '\n')
1515

16-
pathlist = os.environ['PATH'].split(':')
16+
pathlist = os.environ['PATH'].split(os.pathsep)
1717

1818
sts = 0
1919
longlist = ''

0 commit comments

Comments
 (0)