mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-36444: Rework _Py_InitializeFromConfig() API (GH-12576)
This commit is contained in:
parent
364f0b0f19
commit
5ac27a50ff
11 changed files with 218 additions and 201 deletions
|
|
@ -82,7 +82,7 @@ Py_FrozenMain(int argc, char **argv)
|
|||
if (argc >= 1)
|
||||
Py_SetProgramName(argv_copy[0]);
|
||||
|
||||
err = _Py_InitializeFromConfig(&config, NULL);
|
||||
err = _Py_InitializeFromConfig(&config);
|
||||
/* No need to call _PyCoreConfig_Clear() since we didn't allocate any
|
||||
memory: program_name is a constant string. */
|
||||
if (_Py_INIT_FAILED(err)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue