]> granicus.if.org Git - python/commit
bpo-32030: Add _PyCoreConfig.module_search_paths (#4954)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 24 Jan 2018 16:03:28 +0000 (17:03 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2018 16:03:28 +0000 (17:03 +0100)
commit8ded5b803705328749622256701b3f08a9d6c5ab
tree18adbd5dae7461085c00c9d751163137fbc2dfe8
parent5de15f1d5ff09085620f63f0597d0920d75be719
bpo-32030: Add _PyCoreConfig.module_search_paths (#4954)

_PyCoreConfig_Read() is now responsible to compute sys.path.
So sys.path is now computed before calling _Py_InitializeCore().

Changes:

* Add module_search_path, module_search_paths, executable, prefix,
  base_prefix, exec_prefix and base_exec_prefix to _PyCoreConfig.
* _PyMainInterpreterConfig_Read() now only converts wchar_t** lists
  into a Python list, it doesn't compute sys.path anymore.
Include/pystate.h
Modules/main.c
PC/getpathp.c