Skip to content

Commit

Permalink
pythongh-44123: Add note on relative path for os.exec* (pythonGH-93826)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Dower <[email protected]>
  • Loading branch information
slateny and zooba authored Apr 24, 2023
1 parent 014f131 commit 59c522f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59c522f

Please sign in to comment.