diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-11-18 04:41:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 04:41:48 (GMT) |
commit | 177a41a07b7d13c70d068ea0962f07e625ae171e (patch) | |
tree | 1f698c35899360fe3b73bc90b9556871b35813a0 /PC | |
parent | 689d555ec135d4115574addd063c358ac4897cc4 (diff) | |
download | cpython-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')
-rw-r--r-- | PC/getpathp.c | 4 |
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(); } |