Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue444582] Finding programs in PATH, addition to os

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 19, 2009, 12:27 PM

Post #1 of 3 (323 views)
Permalink
[issue444582] Finding programs in PATH, addition to os

Changes by Andy Buckley <andy [at] insectnation>:


----------
nosy: +andybuckley

_______________________________________
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


report at bugs

Nov 19, 2009, 6:50 PM

Post #2 of 3 (285 views)
Permalink
[issue444582] Finding programs in PATH, addition to os [In reply to]

Changes by Brett Cannon <brett [at] python>:


----------
nosy: -brett.cannon

_______________________________________
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


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

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.