diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-25 00:01:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 00:01:23 +0100 |
commit | f04ebe2a4d68b194deeb438e9185efdafc10a832 (patch) | |
tree | a6c6eb6febcdedcb094d8409d2f9ef7cc8716a32 /Include/pystate.h | |
parent | 46972b7bc385ec2bdc7f567bbd22c9e56ffdf003 (diff) | |
download | cpython-git-f04ebe2a4d68b194deeb438e9185efdafc10a832.tar.gz |
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
Diffstat (limited to 'Include/pystate.h')
-rw-r--r-- | Include/pystate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 533851fc02..60d001c492 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -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 \ |