Issue 10688: pydoc removes lib directory

Issue10688

Created on 2010-12-12 22:38 by CZ, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg123853 - (view) Author: CZ (CZ) Date: 2010-12-12 22:38
when pydoc is run with "python -m" (e.g., "python -m pydoc map"),
you will receive an error message: No module named tempfile.

The reason is pydoc removes 'C:\Python26\lib' (in my case) from sys.path.

But you can run it as "python <full path to pydoc.py>" because the lib directory appears twice in the sys.path in such situation.
msg123854 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-12-12 22:41
This is a duplicate of issue 2029.
History
Date User Action Args
2022-04-11 14:57:10adminsetgithub: 54897
2010-12-12 22:41:31r.david.murraysetstatus: open -> closed

superseder: "python -m pydoc -g" fails

nosy: + r.david.murray
messages: + msg123854
resolution: duplicate
stage: resolved

2010-12-12 22:38:43CZcreate