mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Adjust expression from == to != in alignment with the meaning of the paragraph. (GH-104021)
This commit is contained in:
parent
4b27972f5f
commit
93107aa2a4
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