summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-24 23:01:23 (GMT)
committerGitHub <noreply@github.com>2017-11-24 23:01:23 (GMT)
commitf04ebe2a4d68b194deeb438e9185efdafc10a832 (patch)
treea6c6eb6febcdedcb094d8409d2f9ef7cc8716a32 /Include
parent46972b7bc385ec2bdc7f567bbd22c9e56ffdf003 (diff)
downloadcpython-f04ebe2a4d68b194deeb438e9185efdafc10a832.zip
cpython-f04ebe2a4d68b194deeb438e9185efdafc10a832.tar.gz
cpython-f04ebe2a4d68b194deeb438e9185efdafc10a832.tar.bz2
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')
-rw-r--r--Include/pystate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 533851f..60d001c 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 \