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

Function spawnlpe

Lib/os.py:1024–1033  ·  view source on GitHub ↗

spawnlpe(mode, file, *args, env) -> 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

1022 return spawnvp(mode, file, args)
1023
1024 def spawnlpe(mode, file, *args):
1025 """spawnlpe(mode, file, *args, env) -> integer
1026
1027Execute file (which is looked for along $PATH) with arguments from
1028args in a subprocess with the supplied environment.
1029If mode == P_NOWAIT return the pid of the process.
1030If mode == P_WAIT return the process's exit code if it exits normally;
1031otherwise return -SIG, where SIG is the signal that killed it. """
1032 env = args[-1]
1033 return spawnvpe(mode, file, args[:-1], env)
1034
1035
1036 __all__.extend(["spawnlp", "spawnlpe"])

Callers

nothing calls this directly

Calls 1

spawnvpeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…