Skip to content

bpo-38234: Remove _PyPathConfig.dll_path#16307

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:remove_dll_path
Sep 20, 2019
Merged

bpo-38234: Remove _PyPathConfig.dll_path#16307
vstinner merged 1 commit intopython:masterfrom
vstinner:remove_dll_path

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 20, 2019

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().

https://bugs.python.org/issue38234

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().
@vstinner vstinner requested a review from a team as a code owner September 20, 2019 22:39
@vstinner vstinner merged commit c422167 into python:master Sep 20, 2019
@vstinner vstinner deleted the remove_dll_path branch September 20, 2019 23:02
vstinner added a commit that referenced this pull request Sep 21, 2019
…-16298) (GH-16313)

* 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.

(cherry picked from commit c422167)

* bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298)

* If Py_SetPath() has been called, _PyConfig_InitPathConfig() now
  uses its value.
* Py_Initialize() now longer copies path configuration from PyConfig
  to the global path configuration (_Py_path_config).

(cherry picked from commit e267793)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants