From 3c1ba1dac3a77cabfa97612ee9e1801ff4a85354 Mon Sep 17 00:00:00 2001 From: Ben Faulhaber <111227622+faulhaberben@users.noreply.github.com> Date: Mon, 1 May 2023 07:47:34 +0200 Subject: [PATCH] Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021) (cherry picked from commit 93107aa2a49a9354ffb10b3cd263dc3e99ebdeff) Co-authored-by: Ben Faulhaber <111227622+faulhaberben@users.noreply.github.com> --- 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 ff3c4b514b5990..07a6f5f8920f9c 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