From 4b0dcef8d6f6c8eaf7b2473db1b4d963a015269c Mon Sep 17 00:00:00 2001 From: Ben Faulhaber <111227622+faulhaberben@users.noreply.github.com> Date: Sun, 30 Apr 2023 22:05:16 +0200 Subject: [PATCH] Clarify venv.rst More semantically clear expression. --- Doc/library/venv.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 52bf99e5bb0f67..9e5672545dea35 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -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