From: Ben Faulhaber <111227622+faulhaberben@users.noreply.github.com> Date: Mon, 1 May 2023 05:47:34 +0000 (+0200) Subject: Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph... X-Git-Tag: v3.12.0b1~352 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93107aa2a49a9354ffb10b3cd263dc3e99ebdeff;p=thirdparty%2FPython%2Fcpython.git Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021) --- diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 52bf99e5bb0f..9e5672545dea 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