[issue16957] shutil.which() shouldn't look in working directory on unix-y systems
Serhiy Storchaka
report at bugs.python.org
Fri Jan 18 08:42:34 CET 2013
Serhiy Storchaka added the comment:
No, it should be
if os.path.dirname(cmd):
if _access_check(cmd, mode):
return cmd
return None
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16957>
_______________________________________
More information about the Python-bugs-list
mailing list