summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-23 00:49:45 (GMT)
committerGitHub <noreply@github.com>2017-11-23 00:49:45 (GMT)
commite32e79f7d8216b78ac9e61bb1f2eee693108d4ee (patch)
treef37f8a85b01f24f9f368dbec764ef38fee0229c2 /Python
parent0784a2e5b174d2dbf7b144d480559e650c5cf64c (diff)
downloadcpython-e32e79f7d8216b78ac9e61bb1f2eee693108d4ee.zip
cpython-e32e79f7d8216b78ac9e61bb1f2eee693108d4ee.tar.gz
cpython-e32e79f7d8216b78ac9e61bb1f2eee693108d4ee.tar.bz2
bpo-32030: Move PYTHONPATH to _PyMainInterpreterConfig (#4511)
Move _PyCoreConfig.module_search_path_env to _PyMainInterpreterConfig structure.
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 9eeac9d..552501d 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -843,7 +843,7 @@ _Py_InitializeMainInterpreter(const _PyMainInterpreterConfig *config)
/* GetPath may initialize state that _PySys_EndInit locks
in, and so has to be called first. */
/* TODO: Call Py_GetPath() in Py_ReadConfig, rather than here */
- wchar_t *sys_path = _Py_GetPathWithConfig(&interp->core_config);
+ wchar_t *sys_path = _Py_GetPathWithConfig(&interp->config);
if (interp->core_config._disable_importlib) {
/* Special mode for freeze_importlib: run with no import system
@@ -1301,7 +1301,7 @@ new_interpreter(PyThreadState **tstate_p)
/* XXX The following is lax in error checking */
- wchar_t *sys_path = _Py_GetPathWithConfig(&interp->core_config);
+ wchar_t *sys_path = _Py_GetPathWithConfig(&interp->config);
PyObject *modules = PyDict_New();
if (modules == NULL) {