]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-44123: Add note on relative path for os.exec* (GH-93826)
authorStanley <46876382+slateny@users.noreply.github.com>
Mon, 24 Apr 2023 13:52:31 +0000 (06:52 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 13:52:31 +0000 (14:52 +0100)
Co-authored-by: Steve Dower <steve.dower@python.org>
Doc/library/os.rst

index 7bb501c59468178fbf5430799bd5d56c7b9609cd..50e951c631fa881654950b311ec8157e2fc9bf01 100644 (file)
@@ -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