MCPcopy Index your code
hub / github.com/python/cpython / spawnvp

Function spawnvp

Lib/os.py:959–967  ·  view source on GitHub ↗

spawnvp(mode, file, args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess. 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 return -SIG, where SIG is the signal that

(mode, file, args)

Source from the content-addressed store, hash-verified

957 # Note: spawnvp[e] isn't currently supported on Windows
958
959 def spawnvp(mode, file, args):
960 """spawnvp(mode, file, args) -> integer
961
962Execute file (which is looked for along $PATH) with arguments from
963args in a subprocess.
964If mode == P_NOWAIT return the pid of the process.
965If mode == P_WAIT return the process's exit code if it exits normally;
966otherwise return -SIG, where SIG is the signal that killed it. """
967 return _spawnvef(mode, file, args, None, execvp)
968
969 def spawnvpe(mode, file, args, env):
970 """spawnvpe(mode, file, args, env) -> integer

Callers 1

spawnlpFunction · 0.85

Calls 1

_spawnvefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…