]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph...
authorBen Faulhaber <111227622+faulhaberben@users.noreply.github.com>
Mon, 1 May 2023 05:47:34 +0000 (07:47 +0200)
committerGitHub <noreply@github.com>
Mon, 1 May 2023 05:47:34 +0000 (06:47 +0100)
Doc/library/venv.rst

index 52bf99e5bb0f678a6f96ab02085026710ac504ed..9e5672545dea3567125a6af3ef63573cc7e3543a 100644 (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