]> granicus.if.org Git - python/commit
bpo-38234: read_pth_file() now returns PyStatus (GH-16338)
authorVictor Stinner <vstinner@redhat.com>
Mon, 23 Sep 2019 22:55:48 +0000 (00:55 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2019 22:55:48 +0000 (00:55 +0200)
commit85ce0a7178801b538160cbb5cf9ef50a713c45bf
treefbb8bdf8ba879f0164ff5fdc3cfd89d0a901bd2d
parent9c42f8cda552694f3b47d6388d4ae84d61731872
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.
Modules/getpath.c
PC/getpathp.c