diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-20 23:02:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 23:02:56 (GMT) |
commit | c422167749f92d4170203e996a2c619c818335ea (patch) | |
tree | 23cc4f024fefc0d5d708503fb5dbd6e07a509207 /Python/pylifecycle.c | |
parent | b1542583bee204130934c2b90684041e29378250 (diff) | |
download | cpython-c422167749f92d4170203e996a2c619c818335ea.zip cpython-c422167749f92d4170203e996a2c619c818335ea.tar.gz cpython-c422167749f92d4170203e996a2c619c818335ea.tar.bz2 |
bpo-38234: Remove _PyPathConfig.dll_path (GH-16307)
The DLL path is not computed from any user configuration and cannot
be configured by PyConfig. Instead, add a new _Py_dll_path global variable.
Remove _PyConfig_SetPathConfig(): replaced with _PyPathConfig_Init().
Py_Initialize() now longer sets the "global path configuration",
but only initialize _Py_dll_path.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index f9ff8f4..e5b6283 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -475,7 +475,7 @@ pyinit_core_reconfigure(_PyRuntimeState *runtime, config = &interp->config; if (config->_install_importlib) { - status = _PyConfig_SetPathConfig(config); + status = _PyPathConfig_Init(); if (_PyStatus_EXCEPTION(status)) { return status; } @@ -646,7 +646,7 @@ pycore_init_import_warnings(PyThreadState *tstate, PyObject *sysmod) } if (config->_install_importlib) { - status = _PyConfig_SetPathConfig(config); + status = _PyPathConfig_Init(); if (_PyStatus_EXCEPTION(status)) { return status; } |