summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorStanley <46876382+slateny@users.noreply.github.com>2023-04-24 13:52:31 (GMT)
committerGitHub <noreply@github.com>2023-04-24 13:52:31 (GMT)
commit59c522f9650c22dc986debce483b83a4ffc6dc0d (patch)
treec3a4eb620cca235832e819dcbf574994b532ceeb /Doc/library
parent014f1319347d7cee3c8aa6c21a1cdf2e4998ef78 (diff)
downloadcpython-59c522f9650c22dc986debce483b83a4ffc6dc0d.zip
cpython-59c522f9650c22dc986debce483b83a4ffc6dc0d.tar.gz
cpython-59c522f9650c22dc986debce483b83a4ffc6dc0d.tar.bz2
gh-44123: Add note on relative path for os.exec* (GH-93826)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/os.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 7bb501c..50e951c 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3919,7 +3919,8 @@ to be ignored.
the :envvar:`PATH` variable. The other variants, :func:`execl`, :func:`execle`,
:func:`execv`, and :func:`execve`, will not use the :envvar:`PATH` variable to
locate the executable; *path* must contain an appropriate absolute or relative
- path.
+ path. Relative paths must include at least one slash, even on Windows, as
+ plain names will not be resolved.
For :func:`execle`, :func:`execlpe`, :func:`execve`, and :func:`execvpe` (note
that these all end in "e"), the *env* parameter must be a mapping which is