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 return -SI
(mode, file, *args)
| 993 | # At the moment, Windows doesn't implement spawnvp[e], |
| 994 | # so it won't have spawnlp[e] either. |
| 995 | def spawnlp(mode, file, *args): |
| 996 | """spawnlp(mode, file, *args) -> integer |
| 997 | |
| 998 | Execute file (which is looked for along $PATH) with arguments from |
| 999 | args in a subprocess with the supplied environment. |
| 1000 | If mode == P_NOWAIT return the pid of the process. |
| 1001 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 1002 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 1003 | return spawnvp(mode, file, args) |
| 1004 | |
| 1005 | def spawnlpe(mode, file, *args): |
| 1006 | """spawnlpe(mode, file, *args, env) -> integer |