[Python-bugs-list] [ python-Bugs-773020 ] which.py doesn't work on windows

SourceForge.net noreply@sourceforge.net
Thu, 17 Jul 2003 07:47:44 -0700


Bugs item #773020, was opened at 2003-07-17 16:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=773020&group_id=5470

Category: Demos and Tools
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Shasckaw Lionfaith (shasckaw)
Assigned to: Nobody/Anonymous (nobody)
Summary: which.py doesn't work on windows

Initial Comment:
which.py can't find any given file in the paths given
in PATH variable.

To debug this, should replace the line:
pathlist = string.splitfields(os.environ['PATH'], ':')

by this line:
pathlist = string.splitfields(os.environ['PATH'],
os.pathsep)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=773020&group_id=5470