mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860)
This commit is contained in:
parent
689d555ec1
commit
177a41a07b
6 changed files with 74 additions and 33 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue