mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35537: subprocess can now use os.posix_spawnp (GH-11579)
The subprocess module can now use the os.posix_spawnp() function, if it is available, to locate the program in the PATH.
This commit is contained in:
parent
92b8322e7e
commit
0785889468
3 changed files with 13 additions and 6 deletions
|
@ -612,7 +612,8 @@ def collect_get_config(info_add):
|
|||
|
||||
def collect_subprocess(info_add):
|
||||
import subprocess
|
||||
copy_attributes(info_add, subprocess, 'subprocess.%s', ('_USE_POSIX_SPAWN',))
|
||||
attrs = ('_USE_POSIX_SPAWN', '_HAVE_POSIX_SPAWNP')
|
||||
copy_attributes(info_add, subprocess, 'subprocess.%s', attrs)
|
||||
|
||||
|
||||
def collect_info(info):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue