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 signal th
(mode, file, *args)
| 975 | return spawnv(mode, file, args) |
| 976 | |
| 977 | def spawnle(mode, file, *args): |
| 978 | """spawnle(mode, file, *args, env) -> integer |
| 979 | |
| 980 | Execute file with arguments from args in a subprocess with the |
| 981 | supplied environment. |
| 982 | If mode == P_NOWAIT return the pid of the process. |
| 983 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 984 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 985 | env = args[-1] |
| 986 | return spawnve(mode, file, args[:-1], env) |
| 987 | |
| 988 | |
| 989 | __all__.extend(["spawnl", "spawnle"]) |