]> granicus.if.org Git - python/commit
bpo-38234: read_pth_file() now returns PyStatus (GH-16338)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2019 23:16:53 +0000 (16:16 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2019 23:16:53 +0000 (16:16 -0700)
commit7f7cd899e3d773b803b7af5b0c19eeff83dd69fe
treea4487f8dd590d9b51107e2cb1a4b844b4efcba0e
parent3f5409a3f13c59baa34656bccefdc3728e46c9ef
bpo-38234: read_pth_file() now returns PyStatus (GH-16338)

Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
(cherry picked from commit 85ce0a7178801b538160cbb5cf9ef50a713c45bf)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Modules/getpath.c
PC/getpathp.c