You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling a Windows environment's Scripts\pydoc.bat by its full path can run a different Python when the environment is not activated. The resulting documentation uses that interpreter's installed packages instead of the environment's.
The batch file gives cmd.exe an executable name without a directory. Windows command lookup checks the current directory and PATH; the batch file's own directory does not select the interpreter. Calling pydoc.bat by its path therefore leaves interpreter selection to the caller's PATH.
Reproduction
On Windows 11, with the repository at C:\src and a tox Python at C:\src\virtualenv-main-232200.tox\3.14\Scripts\python.exe, run:
The expected interpreter is C:\src\plainvenv\Scripts\python.exe. The native check used a build of that commit, not a published wheel.
Impact
This affects Windows users who call the batch file by path without activating the environment while another Python precedes it on PATH. Reproducibility is moderate because it requires Windows and that PATH setup. Exposure is niche because it requires a direct batch-file call without activation. The observed wrong-interpreter selection is an ordinary bug.
Activity
🐛 fix(activation): bind pydoc to env Python
🐛 fix(activation): use batch env Python
🐛 fix(batch): bind pydoc for quoted names
🐛 fix(batch): bind pydoc for quoted names