summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:33:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:33:05 (GMT)
commit07c24d13ed3902ed6d85e70602e3f77cca098b16 (patch)
tree5f624f9f268a890ab9ac6dd9ed18bf74ff66d610 /Doc/library/shutil.rst
parent849349de05aef4de3ad1f3b5d8936b3fc79d4c84 (diff)
downloadcpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.zip
cpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.tar.gz
cpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.tar.bz2
Issue #444582: shutil.which() respects relative paths.
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index b581ce8..7156116 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -249,8 +249,8 @@ Directory and files operations
.. function:: which(cmd, mode=os.F_OK | os.X_OK, path=None)
- Return the full path to an executable which would be run if the given
- *cmd* was called. If no *cmd* would be called, return ``None``.
+ Return the path to an executable which would be run if the given *cmd*
+ was called. If no *cmd* would be called, return ``None``.
*mode* is a permission mask passed a to :func:`os.access`, by default
determining if the file exists and executable.