MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / spawnvpe

Function spawnvpe

tools/python-3.11.9-amd64/Lib/os.py:905–913  ·  view source on GitHub ↗

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

(mode, file, args, env)

Source from the content-addressed store, hash-verified

903 return _spawnvef(mode, file, args, None, execvp)
904
905 def spawnvpe(mode, file, args, env):
906 """spawnvpe(mode, file, args, env) -> integer
907
908Execute file (which is looked for along $PATH) with arguments from
909args in a subprocess with the supplied environment.
910If mode == P_NOWAIT return the pid of the process.
911If mode == P_WAIT return the process's exit code if it exits normally;
912otherwise return -SIG, where SIG is the signal that killed it. """
913 return _spawnvef(mode, file, args, env, execvpe)
914
915
916 __all__.extend(["spawnv", "spawnve", "spawnvp", "spawnvpe"])

Callers 1

spawnlpeFunction · 0.85

Calls 1

_spawnvefFunction · 0.85

Tested by

no test coverage detected