mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
[3.11] Adjust expression from ==
to !=
in alignment with the meaning of the paragraph. (GH-104021) (GH-104031)
(cherry picked from commit 93107aa2a4
)
This commit is contained in:
parent
2e5f1a1259
commit
d8055b889c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ point to the directories of the virtual environment,
|
|||
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
|
||||
point to those of the base Python used to create the environment.
|
||||
It is sufficient to check
|
||||
``sys.prefix == sys.base_prefix`` to determine if the current interpreter is
|
||||
``sys.prefix != sys.base_prefix`` to determine if the current interpreter is
|
||||
running from a virtual environment.
|
||||
|
||||
A virtual environment may be "activated" using a script in its binary directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue