8000 gh-44123: Add note on relative path for os.exec* (GH-93826) · python/cpython@59c522f · GitHub
[go: up one dir, main page]

Skip to content

Commit 59c522f

Browse files
slatenyzooba
andauthored
gh-44123: Add note on relative path for os.exec* (GH-93826)
Co-authored-by: Steve Dower <steve.dower@python.org>
1 parent 014f131 commit 59c522f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,7 +3919,8 @@ to be ignored.
39193919
the :envvar:`PATH` variable. The other variants, :func:`execl`, :func:`execle`,
39203920
:func:`execv`, and :func:`execve`, will not use the :envvar:`PATH` variable to
39213921
locate the executable; *path* must contain an appropriate absolute or relative
3922-
path.
3922+
path. Relative paths must include at least one slash, even on Windows, as
3923+
plain names will not be resolved.
39233924

39243925
For :func:`execle`, :func:`execlpe`, :func:`execve`, and :func:`execvpe` (note
39253926
that these all end in "e"), the *env* parameter must be a mapping which is

0 commit comments

Comments
 (0)
0