From dd8a93e23b5c4f9290e1cea6183d97eb9b5e61c0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 30 Jun 2020 00:49:03 +0200 Subject: bpo-23427: Add sys.orig_argv attribute (GH-20729) Add sys.orig_argv attribute: the list of the original command line arguments passed to the Python executable. Rename also PyConfig._orig_argv to PyConfig.orig_argv and document it. --- Python/sysmodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index f3b5a6afdf..9fcdb5dbc4 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2931,6 +2931,7 @@ _PySys_InitMain(PyThreadState *tstate) } COPY_LIST("argv", config->argv); + COPY_LIST("orig_argv", config->orig_argv); COPY_LIST("warnoptions", config->warnoptions); PyObject *xoptions = sys_create_xoptions_dict(config); -- cgit v1.2.1