diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-23 12:45:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 12:45:47 (GMT) |
commit | fcdb027234566c4d506d6d753c7d5638490fb088 (patch) | |
tree | f2de660712a5fb27687ffbc804e63bc3c445d961 /Doc/c-api/init_config.rst | |
parent | b4d0b39a9b4cd203bcc5b236dc96456e9658119a (diff) | |
download | cpython-fcdb027234566c4d506d6d753c7d5638490fb088.zip cpython-fcdb027234566c4d506d6d753c7d5638490fb088.tar.gz cpython-fcdb027234566c4d506d6d753c7d5638490fb088.tar.bz2 |
bpo-38236: Dump path config at first import error (GH-16300)
Python now dumps path configuration if it fails to import the Python
codecs of the filesystem and stdio encodings.
Diffstat (limited to 'Doc/c-api/init_config.rst')
-rw-r--r-- | Doc/c-api/init_config.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst index c198df3..bc24fa0 100644 --- a/Doc/c-api/init_config.rst +++ b/Doc/c-api/init_config.rst @@ -425,6 +425,11 @@ PyConfig :data:`sys.base_exec_prefix`. + .. c:member:: wchar_t* base_executable + + :data:`sys._base_executable`: ``__PYVENV_LAUNCHER__`` environment + variable value, or copy of :c:member:`PyConfig.executable`. + .. c:member:: wchar_t* base_prefix :data:`sys.base_prefix`. @@ -862,11 +867,13 @@ Path Configuration * Path configuration input fields: * :c:member:`PyConfig.home` - * :c:member:`PyConfig.pythonpath_env` * :c:member:`PyConfig.pathconfig_warnings` + * :c:member:`PyConfig.program_name` + * :c:member:`PyConfig.pythonpath_env` * Path configuration output fields: + * :c:member:`PyConfig.base_executable` * :c:member:`PyConfig.exec_prefix` * :c:member:`PyConfig.executable` * :c:member:`PyConfig.prefix` @@ -918,6 +925,9 @@ The following configuration files are used by the path configuration: * ``python._pth`` (Windows only) * ``pybuilddir.txt`` (Unix only) +The ``__PYVENV_LAUNCHER__`` environment variable is used to set +:c:member:`PyConfig.base_executable` + Py_RunMain() ------------ |