From 5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7 Mon Sep 17 00:00:00 2001 From: Géry Ogam Date: Sat, 23 Apr 2022 00:47:09 +0200 Subject: 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. --- Lib/multiprocessing/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/multiprocessing/util.py') 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: -- cgit v1.2.3