diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2018-01-24 16:03:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 16:03:28 (GMT) |
commit | 8ded5b803705328749622256701b3f08a9d6c5ab (patch) | |
tree | 18adbd5dae7461085c00c9d751163137fbc2dfe8 /PC/getpathp.c | |
parent | 5de15f1d5ff09085620f63f0597d0920d75be719 (diff) | |
download | cpython-8ded5b803705328749622256701b3f08a9d6c5ab.zip cpython-8ded5b803705328749622256701b3f08a9d6c5ab.tar.gz cpython-8ded5b803705328749622256701b3f08a9d6c5ab.tar.bz2 |
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.
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r-- | PC/getpathp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c index c4977e7..e90a643 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -692,6 +692,9 @@ calculate_pth_file(_PyPathConfig *config, wchar_t *prefix) return 0; } + /* FIXME, bpo-32030: Global configuration variables should not be modified + here, _PyPathConfig_Init() is called early in Python initialization: + see pymain_cmdline(). */ return read_pth_file(config, prefix, spbuffer, &Py_IsolatedFlag, &Py_NoSiteFlag); } |