spawnvpe(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 retur
(mode, file, args, env)
| 967 | return _spawnvef(mode, file, args, None, execvp) |
| 968 | |
| 969 | def spawnvpe(mode, file, args, env): |
| 970 | """spawnvpe(mode, file, args, env) -> integer |
| 971 | |
| 972 | Execute file (which is looked for along $PATH) with arguments from |
| 973 | args in a subprocess with the supplied environment. |
| 974 | If mode == P_NOWAIT return the pid of the process. |
| 975 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 976 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 977 | return _spawnvef(mode, file, args, env, execvpe) |
| 978 | |
| 979 | |
| 980 | __all__.extend(["spawnv", "spawnve", "spawnvp", "spawnvpe"]) |