Adjust expression from == to != in alignment with the meaning of the paragraph. (GH-104021)

This commit is contained in:
Ben Faulhaber 2023-05-01 07:47:34 +02:00 committed by GitHub
parent 4b27972f5f
commit 93107aa2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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