From 177a41a07b7d13c70d068ea0962f07e625ae171e Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 17 Nov 2018 20:41:48 -0800 Subject: bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) --- PC/getpathp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'PC/getpathp.c') diff --git a/PC/getpathp.c b/PC/getpathp.c index ee9d3d258f..25f371fc9f 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -982,6 +982,10 @@ done: if (config->prefix == NULL) { return _Py_INIT_NO_MEMORY(); } + config->exec_prefix = _PyMem_RawWcsdup(prefix); + if (config->exec_prefix == NULL) { + return _Py_INIT_NO_MEMORY(); + } return _Py_INIT_OK(); } -- cgit v1.2.1