summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-09-30 07:10:28 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-09-30 07:10:28 (GMT)
commitec3ea94251307071111304b95b2ffd3b3703e967 (patch)
tree3c1f6f9cb345e61bbb3628aec4686456ed2abc88 /Doc/library/subprocess.rst
parentf727082b71900bb78284924ad7879c85c012c9c6 (diff)
downloadcpython-ec3ea94251307071111304b95b2ffd3b3703e967.zip
cpython-ec3ea94251307071111304b95b2ffd3b3703e967.tar.gz
cpython-ec3ea94251307071111304b95b2ffd3b3703e967.tar.bz2
Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument.
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 9c03e06..e4c1ad4 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -415,10 +415,10 @@ functions.
.. versionadded:: 3.2
The *pass_fds* parameter was added.
- If *cwd* is not ``None``, the child's current directory will be changed to *cwd*
- before it is executed. Note that this directory is not considered when
- searching the executable, so you can't specify the program's path relative to
- *cwd*.
+ If *cwd* is not ``None``, the function changes the working directory to
+ *cwd* before executing the child. In particular, the function looks for
+ *executable* (or for the first item in *args*) relative to *cwd* if the
+ executable path is a relative path.
If *restore_signals* is True (the default) all signals that Python has set to
SIG_IGN are restored to SIG_DFL in the child process before the exec.