bpo-32030: Add _PyCoreConfig.module_search_paths by vstinner · Pull Request #4954 · python/cpython
vstinner
changed the title
bpo-32030: Add _PyCoreConfig.module_search_paths
[WIP] bpo-32030: Add _PyCoreConfig.module_search_paths
_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
changed the title
[WIP] bpo-32030: Add _PyCoreConfig.module_search_paths
bpo-32030: Add _PyCoreConfig.module_search_paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters