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.

作者 iki
收信人 ajaksu2, andybuckley, brian.curtin, christian.heimes, edemaine, iki, tleeuwenburg@gmail.com
日期 2010-03-05.00:21:32
SpamBayes Score 2.8651195e-05
Marked as misclassified
Message-id <1267748495.94.0.602887912766.issue444582@psf.upfronthosting.co.za>
In-reply-to
内容
Adapted Brian Curtin's http://bugs.python.org/file15381/
shutil_which.patch and made another reference implementation as a standalone module including the following fixes:

* uses ``PATHEXT`` on Windows
* searches current directory before ``PATH`` on Windows, but not before an explicitly passed path
* accepts both string or iterable for an explicitly passed path, or pathext
* accepts an explicitly passed empty path, or pathext (either '' or [])
* does not search ``PATH`` for files that have a path specified in their name already

Use any of these changes in the final shutil patch if you like to. The shutil module has availability 'Unix, Windows' after all.
历史
日期 用户 动作 参数
2010-03-05 00:21:36iki修改recipients: + iki, edemaine, christian.heimes, ajaksu2, andybuckley, tleeuwenburg@gmail.com, brian.curtin
2010-03-05 00:21:35iki修改messageid: <1267748495.94.0.602887912766.issue444582@psf.upfronthosting.co.za>
2010-03-05 00:21:34iki链接issue444582 messages
2010-03-05 00:21:34iki创建