MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / spawnlp

Function spawnlp

tools/python-3.11.9-amd64/Lib/os.py:950–958  ·  view source on GitHub ↗

spawnlp(mode, file, *args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise retu

(mode, file, *args)

Source from the content-addressed store, hash-verified

948 # At the moment, Windows doesn't implement spawnvp[e],
949 # so it won't have spawnlp[e] either.
950 def spawnlp(mode, file, *args):
951 """spawnlp(mode, file, *args) -> integer
952
953Execute file (which is looked for along $PATH) with arguments from
954args in a subprocess with the supplied environment.
955If mode == P_NOWAIT return the pid of the process.
956If mode == P_WAIT return the process's exit code if it exits normally;
957otherwise return -SIG, where SIG is the signal that killed it. """
958 return spawnvp(mode, file, args)
959
960 def spawnlpe(mode, file, *args):
961 """spawnlpe(mode, file, *args, env) -> integer

Callers

nothing calls this directly

Calls 1

spawnvpFunction · 0.85

Tested by

no test coverage detected