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; otherwis
(mode, file, *args)
| 958 | return spawnvp(mode, file, args) |
| 959 | |
| 960 | def spawnlpe(mode, file, *args): |
| 961 | """spawnlpe(mode, file, *args, env) -> integer |
| 962 | |
| 963 | Execute file (which is looked for along $PATH) with arguments from |
| 964 | args in a subprocess with the supplied environment. |
| 965 | If mode == P_NOWAIT return the pid of the process. |
| 966 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 967 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 968 | env = args[-1] |
| 969 | return spawnvpe(mode, file, args[:-1], env) |
| 970 | |
| 971 | |
| 972 | __all__.extend(["spawnlp", "spawnlpe"]) |
nothing calls this directly
no test coverage detected