This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients
Date 2002-09-25.21:22:28
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=33168

I think locateexe() will not work on MacOS 9, where os.sep
== ':'.  But I don't know how the path works on MacOS 9 or X.

locateexe() can't work on Windows if a path component has
C:\XXX.  Also, the path separator on Windows is ';'.  You
should probably doc that locateexe doesn't work on Windows,
or get it to work on Windows.  Right now, there's no problem
since locateexe() can't be called on windows or os2 now.

I would replace if os.path.isfile() with a try/except
OSError: because the file could exist, but could be a broken
symlink.  I think that may raise an exception now.

To answer Thomas, I think people might use less under
cygwin.  But I'm not sure what os.platform is when python is
built using cygwin.

All that said, I actually like the patch. :-)  So to try to
make those ramblings understandable, check/change
os.path.isfile(), doc/fix locateexe for windows, and check
with Jack, Just, or some other mac person how this would
work on a Mac.
History
Date User Action Args
2007-08-23 15:15:23adminlinkissue612111 messages
2007-08-23 15:15:23admincreate