]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45211: Remember the stdlib dir during startup. (gh-28586)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 28 Sep 2021 18:18:28 +0000 (12:18 -0600)
committerGitHub <noreply@github.com>
Tue, 28 Sep 2021 18:18:28 +0000 (12:18 -0600)
commit0c50b8c0b8274d54d6b71ed7bd21057d3642f138
treeed77a5e7e69302e88349da50c5473c1aa7397d00
parent84975146a7ce64f1d50dcec8311b7f7188a5c962
bpo-45211: Remember the stdlib dir during startup. (gh-28586)

During runtime startup we figure out the stdlib dir but currently throw that information away. This change preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir.

https://bugs.python.org/issue45211
Include/cpython/initconfig.h
Include/internal/pycore_pathconfig.h
Include/internal/pycore_pylifecycle.h
Lib/test/test_embed.py
Lib/test/test_sys.py
Modules/getpath.c
PC/getpathp.c
Python/initconfig.c
Python/pathconfig.c
Python/sysmodule.c