Skip to content

Commit

Permalink
[3.11] Adjust expression from == to != in alignment with the mean…
Browse files Browse the repository at this point in the history
…ing of the paragraph. (GH-104021) (GH-104031)

(cherry picked from commit 93107aa)
  • Loading branch information
miss-islington authored May 1, 2023
1 parent 2e5f1a1 commit d8055b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/venv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8055b8

Please sign in to comment.