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().
This commit is contained in:
Victor Stinner 2019-05-16 17:02:56 +02:00 committed by GitHub
parent 68b34a7204
commit ae239f6b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 109 additions and 36 deletions

View file

@ -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) {