summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorSayan Chowdhury <sayan.chowdhury2012@gmail.com>2017-02-26 17:06:10 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-02-26 17:06:10 (GMT)
commitd5c11f7ace48701bb950c6345deee88c35c66e26 (patch)
treed9bc96e3eac6e73e71ace58da749eaa49f17d91e /Doc/library/subprocess.rst
parent6b4a5f45e2df524174a97832571c82c76a3d424a (diff)
downloadcpython-d5c11f7ace48701bb950c6345deee88c35c66e26.zip
cpython-d5c11f7ace48701bb950c6345deee88c35c66e26.tar.gz
cpython-d5c11f7ace48701bb950c6345deee88c35c66e26.tar.bz2
bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects (#157)
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index e9ba15e..d0b2f9b 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -466,9 +466,13 @@ functions.
The *pass_fds* parameter was added.
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.
+ *cwd* before executing the child. *cwd* can be a :class:`str` and
+ :term:`path-like <path-like object>` object. 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.
+
+ .. versionchanged:: 3.6
+ *cwd* parameter accepts a :term:`path-like object`.
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.