[Python-checkins] python/dist/src/Tools/scripts which.py,1.11,1.12

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Thu, 17 Jul 2003 09:45:45 -0700


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv6161

Modified Files:
	which.py 
Log Message:
fix for bug 773020 - splitting PATH should use os.pathsep


Index: which.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/which.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** which.py	13 May 2003 18:14:25 -0000	1.11
--- which.py	17 Jul 2003 16:45:43 -0000	1.12
***************
*** 14,18 ****
      sys.stderr.write(str + '\n')
  
! pathlist = os.environ['PATH'].split(':')
  
  sts = 0
--- 14,18 ----
      sys.stderr.write(str + '\n')
  
! pathlist = os.environ['PATH'].split(os.pathsep)
  
  sts = 0