Skip to content

Commit 68dd5e0

Browse files
committed
add refs, remove CWD acronym, fix grammar
1 parent 0af0eea commit 68dd5e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

peps/pep-0796.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ in a Python virtual environment's :file:`pyvenv.cfg` file.
1717

1818
Specifically, we will discuss how such relative paths are understood
1919
by the Python startup process, including their conversion to absolute
20-
paths for use by the runtime.
20+
paths for use by the runtime.
2121
This is a fundamental building block for virtual environments to
2222
become more portable.
2323

@@ -27,7 +27,7 @@ Motivation
2727
There are two main motivations for allowing relative paths in ``pyvenv.cfg``.
2828

2929
First, it is currently prescribed that the ``home`` value in ``pyvenv.cfg`` be
30-
an absolute path. The behavior of relative paths is unspecified. While
30+
an absolute path (`gh-135773`). The behavior of relative paths is unspecified. While
3131
techniques exist to work around this for every other sub-part of a virtual
3232
environment, the one remaining part without a tenable solution is how the
3333
Python runtime itself finds ``PYTHONHOME``. This is because, currently, the
@@ -83,7 +83,7 @@ Tools that currently look to enable virtual environment portability across
8383
machines do so either by relying on undocumented interpreter behaviour
8484
(Bazel, omitting the ``home`` key entirely to trigger an implementation
8585
dependent fallback to resolving via a symlinked interpreter binary on
86-
non-Windows systems) or by requiring a post-installation script to be executed
86+
non-Windows systems, see `gh-135773`) or by requiring a post-installation script to be executed
8787
after the environment is placed in its target location (venvstacks).
8888

8989
Specification
@@ -122,8 +122,8 @@ primitives are there, so the only change needed is to define how it resolves
122122
relative paths for ``home`` in ``pyvenv.cfg``.
123123

124124
Currently, relative paths resolve relative to the process's current working
125-
directory. Because CWD isn't knowable in advance, it makes relative paths today
126-
effectively impossible.
125+
directory. Because the current working directory isn't knowable in advance, it
126+
makes relative paths today effectively impossible.
127127

128128
Instead, the paths should be relative to the location of the ``pyvenv.cfg``
129129
file. This file is chosen as the anchor point because the tool that creates the

0 commit comments

Comments
 (0)