diff options
author | Géry Ogam <gery.ogam@gmail.com> | 2022-04-23 00:47:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 15:47:09 -0700 |
commit | 5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7 (patch) | |
tree | 4f87033ff66e48c11420b27c687ded28df53cd50 /Lib/multiprocessing/util.py | |
parent | f912cc0e413f667a8cc257a41775272bc641b0d8 (diff) | |
download | cpython-5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7.tar.gz cpython-5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7.zip |
bpo-46720: Add support for path-like objects to multiprocessing.set_executable for Windows (GH-31279)
This bring the API to be on a par with Unix-like systems.
Diffstat (limited to 'Lib/multiprocessing/util.py')
-rw-r--r-- | Lib/multiprocessing/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index a4683339820..abbc4c5e608 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py @@ -450,7 +450,7 @@ def spawnv_passfds(path, args, passfds): errpipe_read, errpipe_write = os.pipe() try: return _posixsubprocess.fork_exec( - args, [os.fsencode(path)], True, passfds, None, None, + args, [path], True, passfds, None, None, -1, -1, -1, -1, -1, -1, errpipe_read, errpipe_write, False, False, None, None, None, -1, None) finally: |