Skip to content

Commit 81d6053

Browse files
committed
Use the VIRTUAL_ENV environment variable in the configuration documentation
This follows the discussion in https://github.com/pypa/pip/pull/11487/files#r988625394, that despite the VIRTUAL_ENV environment variable not being the technically correct value, it is more readily understood by readers than ``sys.prefix``.
1 parent 93ade85 commit 81d6053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/html/topics/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Base
5252
: {file}`\{sys.base_prefix\}/pip.conf`
5353
5454
Site
55-
: {file}`\{sys.prefix\}/pip.conf`
55+
: {file}`$VIRTUAL_ENV/pip.conf`
5656
```
5757

5858
```{tab} MacOS
@@ -71,7 +71,7 @@ Base
7171
: {file}`\{sys.base_prefix\}/pip.conf`
7272
7373
Site
74-
: {file}`\{sys.prefix\}/pip.conf`
74+
: {file}`$VIRTUAL_ENV/pip.conf`
7575
```
7676

7777
```{tab} Windows
@@ -92,7 +92,7 @@ Base
9292
: {file}`\{sys.base_prefix\}\\pip.ini`
9393
9494
Site
95-
: {file}`\{sys.prefix\}\\pip.ini`
95+
: {file}`%VIRTUAL_ENV%\\pip.ini`
9696
```
9797

9898
### `PIP_CONFIG_FILE`

0 commit comments

Comments
 (0)