]> granicus.if.org Git - python/commit
bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298)
authorVictor Stinner <vstinner@redhat.com>
Fri, 20 Sep 2019 23:50:16 +0000 (01:50 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 23:50:16 +0000 (01:50 +0200)
commite267793aa4101b2771ed0e66aaff5743d23f59af
treef1378008cb479ac5d1841bc10ef2f055a5d98bf6
parent77af2290e594479002aa7d8f914d1f38b14a4854
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).
Misc/NEWS.d/next/C API/2019-09-20-17-22-41.bpo-38234.ZbquVK.rst [new file with mode: 0644]
Modules/getpath.c
PC/getpathp.c
Python/pathconfig.c