mirror of
https://github.com/python/cpython.git
synced 2025-09-07 01:11:26 +00:00
bpo-36142: Add _PyPreConfig_ReadFromArgv() (GH-12173)
The new function is now responsible to parse -E and -I command line arguments.
This commit is contained in:
parent
cad1f747da
commit
6dcb54228e
8 changed files with 209 additions and 52 deletions
|
@ -763,7 +763,7 @@ _Py_InitializeCore(PyInterpreterState **interp_p,
|
|||
|
||||
_PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
|
||||
if (_PyCoreConfig_Copy(&config, src_config) >= 0) {
|
||||
err = _PyCoreConfig_Read(&config);
|
||||
err = _PyCoreConfig_Read(&config, NULL);
|
||||
}
|
||||
else {
|
||||
err = _Py_INIT_ERR("failed to copy core config");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue