spawnle(mode, file, *args, env) -> integer Execute file 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 -SIG, where SIG is the sig
(mode, file, *args)
| 930 | return spawnv(mode, file, args) |
| 931 | |
| 932 | def spawnle(mode, file, *args): |
| 933 | """spawnle(mode, file, *args, env) -> integer |
| 934 | |
| 935 | Execute file with arguments from args in a subprocess with the |
| 936 | supplied environment. |
| 937 | If mode == P_NOWAIT return the pid of the process. |
| 938 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 939 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 940 | env = args[-1] |
| 941 | return spawnve(mode, file, args[:-1], env) |
| 942 | |
| 943 | |
| 944 | __all__.extend(["spawnl", "spawnle"]) |