summaryrefslogtreecommitdiffstats
path: root/PC/getpathp.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-11-18 04:41:48 (GMT)
committerGitHub <noreply@github.com>2018-11-18 04:41:48 (GMT)
commit177a41a07b7d13c70d068ea0962f07e625ae171e (patch)
tree1f698c35899360fe3b73bc90b9556871b35813a0 /PC/getpathp.c
parent689d555ec135d4115574addd063c358ac4897cc4 (diff)
downloadcpython-177a41a07b7d13c70d068ea0962f07e625ae171e.zip
cpython-177a41a07b7d13c70d068ea0962f07e625ae171e.tar.gz
cpython-177a41a07b7d13c70d068ea0962f07e625ae171e.tar.bz2
bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860)
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r--PC/getpathp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index ee9d3d2..25f371f 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();
}