
report at bugs
Nov 22, 2009, 8:41 PM
Post #3 of 3
(263 views)
Permalink
|
|
[issue444582] Finding programs in PATH, addition to os
[In reply to]
|
|
Brian Curtin <curtin [at] acm> added the comment: Here is a patch against r76432 which implements a "which" generator function in shutil that yields full file paths where the searched file exists on the PATH. Includes doc change and a test. It is pretty similar to what edemaine had suggested. This could just as easily return a list, so if that would be more preferable I'll change the patch. ---------- nosy: +brian.curtin Added file: http://bugs.python.org/file15381/shutil_which.patch _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue444582> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|