]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32030: Add _PyMainInterpreterConfig.pythonhome (#4513)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 23 Nov 2017 09:43:14 +0000 (10:43 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2017 09:43:14 +0000 (10:43 +0100)
commit1f15111a6e15d52f6b08907576ec61493cd59358
treeb1a8fd55a1790e3dfd2026cc238e7344f293af90
parente32e79f7d8216b78ac9e61bb1f2eee693108d4ee
bpo-32030: Add _PyMainInterpreterConfig.pythonhome (#4513)

* Py_Main() now reads the PYTHONHOME environment variable
* Add _Py_GetPythonHomeWithConfig() private function
* Add _PyWarnings_InitWithConfig()
* init_filters() doesn't get the current core configuration from the
  current interpreter or Python thread anymore. Pass explicitly the
  configuration to _PyWarnings_InitWithConfig().
* _Py_InitializeCore() now fails on _PyWarnings_InitWithConfig()
  failure.
* Pass configuration as constant
Include/pylifecycle.h
Include/pystate.h
Include/warnings.h
Modules/getpath.c
Modules/main.c
PC/getpathp.c
Python/_warnings.c
Python/pylifecycle.c