summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-04-04 07:11:43 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-04-04 07:11:43 (GMT)
commit69e18c9344b1bc72d1f6c26de0bd41f3ba2c274c (patch)
treeeb64f094a2f21f53da7743916f2dd91b09be00dd /Lib/os.py
parent4e10ed3b86cf08211ef0c9c5408799195c2c1881 (diff)
downloadcpython-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/os.py')
-rw-r--r--Lib/os.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/os.py b/Lib/os.py
index fdb9a46..c037ea9 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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)