spawnvp(mode, file, args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess. 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 that
(mode, file, args)
| 938 | # Note: spawnvp[e] isn't currently supported on Windows |
| 939 | |
| 940 | def spawnvp(mode, file, args): |
| 941 | """spawnvp(mode, file, args) -> integer |
| 942 | |
| 943 | Execute file (which is looked for along $PATH) with arguments from |
| 944 | args in a subprocess. |
| 945 | If mode == P_NOWAIT return the pid of the process. |
| 946 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 947 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 948 | return _spawnvef(mode, file, args, None, execvp) |
| 949 | |
| 950 | def spawnvpe(mode, file, args, env): |
| 951 | """spawnvpe(mode, file, args, env) -> integer |