Skip to content

Commit

Permalink
Adjust expression from == to != in alignment with the meaning of …
Browse files Browse the repository at this point in the history
…the paragraph. (pythonGH-104021)

(cherry picked from commit 93107aa)

Co-authored-by: Ben Faulhaber <[email protected]>
  • Loading branch information
faulhaberben authored and miss-islington committed May 1, 2023
1 parent 2e5f1a1 commit 3c1ba1d
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 3c1ba1d

Please sign in to comment.