Thomas Kluyver added the comment:

The 'short circuit' appears to do what I'd consider the wrong thing when an 
executable file of the same name exists in the working directory. i.e. 
which('setup.py') can return 'setup.py', even though running 'setup.py' in a 
shell doesn't work (you need ./setup.py).

This is on UNIX-y systems, I see from the comments that the cwd is implicitly 
on the path in Windows.

Is this in scope for which() to deal with? Should I open a bug for it? 
Apologies if it's been discussed already.

----------
nosy: +takluyver

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue444582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to