]> granicus.if.org Git - python/commit
bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 22 Nov 2017 23:12:09 +0000 (00:12 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Nov 2017 23:12:09 +0000 (00:12 +0100)
commitd4341109746aa15e1909e63b30b93b6133ffe401
tree8982cc677ace3953484d4e4e34c8b154d0b9fb35
parent82656276caf4cb889193572d2d14dbc5f3d2bdff
bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504)

Changes:

* Py_Main() initializes _PyCoreConfig.module_search_path_env from
  the PYTHONPATH environment variable.
* PyInterpreterState_New() now initializes core_config and config
  fields
* Compute sys.path a little bit ealier in
  _Py_InitializeMainInterpreter() and new_interpreter()
* Add _Py_GetPathWithConfig() private function.
Include/pylifecycle.h
Include/pystate.h
Modules/getpath.c
Modules/main.c
PC/getpathp.c
Python/pylifecycle.c
Python/pystate.c