◐ Shell
clean mode source ↗

bpo-32030: Add _PyCoreConfig.module_search_paths by vstinner · Pull Request #4954 · python/cpython

@vstinner vstinner changed the title bpo-32030: Add _PyCoreConfig.module_search_paths [WIP] bpo-32030: Add _PyCoreConfig.module_search_paths

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

Changes:

* Add nmodule_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.
Calling _PyCoreConfig_Read() requires to set global configuration
variables, and then get again updated global configuration variables.

@vstinner vstinner changed the title [WIP] bpo-32030: Add _PyCoreConfig.module_search_paths bpo-32030: Add _PyCoreConfig.module_search_paths

Jan 23, 2018

@vstinner