summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-16 15:02:56 (GMT)
committerGitHub <noreply@github.com>2019-05-16 15:02:56 (GMT)
commitae239f6b0626e926613a4a1dbafa323bd41fec32 (patch)
treec811687161a90a5a03dc29b83774b5f9688579d7 /Modules/main.c
parent68b34a720485f399e8699235b8f4e08f227dd43b (diff)
downloadcpython-ae239f6b0626e926613a4a1dbafa323bd41fec32.zip
cpython-ae239f6b0626e926613a4a1dbafa323bd41fec32.tar.gz
cpython-ae239f6b0626e926613a4a1dbafa323bd41fec32.tar.bz2
bpo-36763: Add _PyCoreConfig.parse_argv (GH-13361)
* _PyCoreConfig_Read() doesn't parse nor update argv if parse_argv is 0. * Move path configuration fields in _PyCoreConfig. * Add an unit test for parse_argv=0. * Remove unused "done": label in _Py_RunMain().
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 47d0574..b47ac70 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -574,13 +574,13 @@ _Py_RunMain(void)
int exitcode = 0;
pymain_run_python(&exitcode);
+
if (Py_FinalizeEx() < 0) {
/* Value unlikely to be confused with a non-error exit status or
other special meaning */
exitcode = 120;
}
-done:
pymain_free();
if (_Py_UnhandledKeyboardInterrupt) {