From f04ebe2a4d68b194deeb438e9185efdafc10a832 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 25 Nov 2017 00:01:23 +0100 Subject: 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 --- Include/pystate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Include/pystate.h') 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 \ -- cgit v1.2.1