mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-32030: Add _PyMainInterpreterConfig.program_name (#4548)
* Py_Main() now calls Py_SetProgramName() earlier to be able to get the program name in _PyMainInterpreterConfig_ReadEnv(). * Rename prog to program_name * Rename progpath to program_name
This commit is contained in:
parent
46972b7bc3
commit
f04ebe2a4d
5 changed files with 96 additions and 70 deletions
|
|
@ -64,6 +64,8 @@ typedef struct {
|
|||
wchar_t *module_search_path_env;
|
||||
/* PYTHONHOME environment variable, see also Py_SetPythonHome(). */
|
||||
wchar_t *home;
|
||||
/* Program name, see also Py_GetProgramName() */
|
||||
wchar_t *program_name;
|
||||
} _PyMainInterpreterConfig;
|
||||
|
||||
#define _PyMainInterpreterConfig_INIT \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue