@@ -32,10 +32,11 @@ always available.
3232.. data :: base_exec_prefix
3333
3434 Set during Python startup, before ``site.py `` is run, to the same value as
35- :data: `exec_prefix `. If not running in a virtual environment, the values
36- will stay the same; if ``site.py `` finds that a virtual environment is in
37- use, the values of :data: `prefix ` and :data: `exec_prefix ` will be changed to
38- point to the virtual environment, whereas :data: `base_prefix ` and
35+ :data: `exec_prefix `. If not running in a
36+ :ref: `virtual environment <venv-def >`, the values will stay the same; if
37+ ``site.py `` finds that a virtual environment is in use, the values of
38+ :data: `prefix ` and :data: `exec_prefix ` will be changed to point to the
39+ virtual environment, whereas :data: `base_prefix ` and
3940 :data: `base_exec_prefix ` will remain pointing to the base Python
4041 installation (the one which the virtual environment was created from).
4142
@@ -45,7 +46,7 @@ always available.
4546.. data :: base_prefix
4647
4748 Set during Python startup, before ``site.py `` is run, to the same value as
48- :data: `prefix `. If not running in a virtual environment, the values
49+ :data: `prefix `. If not running in a :ref: ` virtual environment < venv-def >` , the values
4950 will stay the same; if ``site.py `` finds that a virtual environment is in
5051 use, the values of :data: `prefix ` and :data: `exec_prefix ` will be changed to
5152 point to the virtual environment, whereas :data: `base_prefix ` and
@@ -241,9 +242,10 @@ always available.
241242 installed in :file: `{ exec_prefix } /lib/python{ X.Y } /lib-dynload `, where *X.Y *
242243 is the version number of Python, for example ``3.2 ``.
243244
244- .. note :: If a virtual environment is in effect, this value will be changed
245- in ``site.py `` to point to the virtual environment. The value for the
246- Python installation will still be available, via :data: `base_exec_prefix `.
245+ .. note :: If a :ref:`virtual environment <venv-def>` is in effect, this
246+ value will be changed in ``site.py `` to point to the virtual environment.
247+ The value for the Python installation will still be available, via
248+ :data: `base_exec_prefix `.
247249
248250
249251.. data :: executable
@@ -865,9 +867,10 @@ always available.
865867 stored in :file: `{ prefix } /include/python{ X.Y } `, where *X.Y * is the version
866868 number of Python, for example ``3.2 ``.
867869
868- .. note :: If a virtual environment is in effect, this value will be changed
869- in ``site.py `` to point to the virtual environment. The value for the
870- Python installation will still be available, via :data: `base_prefix `.
870+ .. note :: If a :ref:`virtual environment <venv-def>` is in effect, this
871+ value will be changed in ``site.py `` to point to the virtual
872+ environment. The value for the Python installation will still be
873+ available, via :data: `base_prefix `.
871874
872875
873876.. data :: ps1
0 commit comments