From 81c9bdcd0b6a0853e1883d797b93636488665340 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 10 Dec 2016 16:55:04 -0200 Subject: [PATCH] Mention that Python also adds CWD to sys.path using python -m --- doc/en/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/usage.rst b/doc/en/usage.rst index ef63a8e06..4f01081ce 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -16,8 +16,8 @@ You can invoke testing through the Python interpreter from the command line:: python -m pytest [...] -This is equivalent to invoking the command line script ``pytest [...]`` -directly. +This is almost equivalent to invoking the command line script ``pytest [...]`` +directly, except that python will also add the current directory to ``sys.path``. Getting help on version, option names, environment variables --------------------------------------------------------------