diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 360d71e70960c77..a2ab2047fa87e2c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4794,16 +4794,16 @@ written in Python, such as a mail server's external command delivery program. .. versionadded:: 3.7 -.. function:: spawnl(mode, path, ...) - spawnle(mode, path, ..., env) +.. function:: spawnl(mode, file, ...) + spawnle(mode, file, ..., env) spawnlp(mode, file, ...) spawnlpe(mode, file, ..., env) - spawnv(mode, path, args) - spawnve(mode, path, args, env) + spawnv(mode, file, args) + spawnve(mode, file, args, env) spawnvp(mode, file, args) spawnvpe(mode, file, args, env) - Execute the program *path* in a new process. + Execute the program *file* in a new process. (Note that the :mod:`subprocess` module provides more powerful facilities for spawning new processes and retrieving their results; using that module is @@ -4835,7 +4835,7 @@ written in Python, such as a mail server's external command delivery program. discussed in the next paragraph), the new environment is used as the source of the :envvar:`PATH` variable. The other variants, :func:`spawnl`, :func:`spawnle`, :func:`spawnv`, and :func:`spawnve`, will not use the - :envvar:`PATH` variable to locate the executable; *path* must contain an + :envvar:`PATH` variable to locate the executable; *file* must contain an appropriate absolute or relative path. For :func:`spawnle`, :func:`spawnlpe`, :func:`spawnve`, and :func:`spawnvpe`