diff Tools/scripts/which.py @ 29928:86c476a425a7 legacy-trunk

fix for bug 773020 - splitting PATH should use os.pathsep
author Skip Montanaro <skip@pobox.com>
date Thu, 17 Jul 2003 16:45:43 +0000
parents 93c92f20b6bf
children 71a294bd7950
line wrap: on
line diff
--- a/Tools/scripts/which.py	Thu Jul 17 16:31:00 2003 +0000
+++ b/Tools/scripts/which.py	Thu Jul 17 16:45:43 2003 +0000
@@ -13,7 +13,7 @@
 def msg(str):
     sys.stderr.write(str + '\n')
 
-pathlist = os.environ['PATH'].split(':')
+pathlist = os.environ['PATH'].split(os.pathsep)
 
 sts = 0
 longlist = ''