reference: add note that `pythonpath` does not affect `-p`

Fix #11118.
This commit is contained in:
Ran Benita 2023-06-22 15:45:20 +03:00
parent 1e32a4b570
commit 1e8135df16
1 changed files with 5 additions and 0 deletions

View File

@ -1703,6 +1703,11 @@ passed multiple times. The expected format is ``name=value``. For example::
[pytest]
pythonpath = src1 src2
.. note::
``pythonpath`` does not affect some imports that happen very early,
most notably plugins loaded using the ``-p`` command line option.
.. confval:: required_plugins