diff --git a/Tools/scripts/which.py b/Tools/scripts/which.py index 99dc35544c6..218254677bd 100755 --- a/Tools/scripts/which.py +++ b/Tools/scripts/which.py @@ -13,7 +13,7 @@ from stat import * def msg(str): sys.stderr.write(str + '\n') -pathlist = os.environ['PATH'].split(':') +pathlist = os.environ['PATH'].split(os.pathsep) sts = 0 longlist = ''