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 serhiy.storchaka
Recipients christian.heimes, giampaolo.rodola, gregory.p.smith, izbyshev, serhiy.storchaka, vstinner
Date 2019-01-17.09:35:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547717725.44.0.803166080242.issue35755@roundup.psfhosted.org>
In-reply-to
Content
This is how the which command behaves:

$ /usr/bin/which python
/usr/bin/python
$ PATH= /usr/bin/which python
$ PATH=. /usr/bin/which python
./python
$ PATH=: /usr/bin/which python
./python

I think shutil.which() should behave similarly unless there are good reasons for difference.
History
Date User Action Args
2019-01-17 09:35:27serhiy.storchakasetrecipients: + serhiy.storchaka, gregory.p.smith, vstinner, giampaolo.rodola, christian.heimes, izbyshev
2019-01-17 09:35:25serhiy.storchakasetmessageid: <1547717725.44.0.803166080242.issue35755@roundup.psfhosted.org>
2019-01-17 09:35:25serhiy.storchakalinkissue35755 messages
2019-01-17 09:35:25serhiy.storchakacreate