Adjust expression from ==
to !=
in alignment with the meaning of the paragraph. (GH-104021)
This commit is contained in:
parent
4b27972f5f
commit
93107aa2a4
@ -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…
x
Reference in New Issue
Block a user