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)
  • Loading branch information
faulhaberben committed May 1, 2023
1 parent 4b27972 commit 93107aa
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 93107aa

Please sign in to comment.