Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b0dcef

Browse files
authored
Clarify venv.rst
More semantically clear expression.
1 parent 654d44b commit 4b0dcef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/venv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ point to the directories of the virtual environment,
5555
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
5656
point to those of the base Python used to create the environment.
5757
It is sufficient to check
58-
``sys.prefix == sys.base_prefix`` to determine if the current interpreter is
58+
``sys.prefix != sys.base_prefix`` to determine if the current interpreter is
5959
running from a virtual environment.
6060

6161
A virtual environment may be "activated" using a script in its binary directory

0 commit comments

Comments
 (0)