diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2004-04-04 07:11:43 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2004-04-04 07:11:43 (GMT) |
commit | 69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c (patch) | |
tree | eb64f094a2f21f53da7743916f2dd91b09be00dd /Lib | |
parent | 4e10ed3b86cf08211ef0c9c5408799195c2c1881 (diff) | |
download | cpython-69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c.zip cpython-69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c.tar.gz cpython-69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c.tar.bz2 |
OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied
with major C compilers (VACPP, EMX+gcc and [Open]Watcom).
Also tidy up the export of spawn*() symbols in the os module to match what
is found/implemented.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/os.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -573,6 +573,10 @@ otherwise return -SIG, where SIG is the signal that killed it. """ env = args[-1] return spawnve(mode, file, args[:-1], env) + + __all__.extend(["spawnv", "spawnve", "spawnl", "spawnle",]) + + if _exists("spawnvp"): # At the moment, Windows doesn't implement spawnvp[e], # so it won't have spawnlp[e] either. @@ -598,8 +602,7 @@ otherwise return -SIG, where SIG is the signal that killed it. """ return spawnvpe(mode, file, args[:-1], env) - __all__.extend(["spawnlp","spawnlpe","spawnv", "spawnve","spawnvp", - "spawnvpe","spawnl","spawnle",]) + __all__.extend(["spawnvp", "spawnvpe", "spawnlp", "spawnlpe",]) # Supply popen2 etc. (for Unix) |