This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, bpb
Date 2008-02-07.13:21:04
SpamBayes Score 0.0043077148
Marked as misclassified No
Message-id <1202390465.47.0.129095663679.issue2029@psf.upfronthosting.co.za>
In-reply-to
Content
There is a difference between "-m" and starting the module directly:
- when running a module, its directory is inserted in front of sys.path.
- with "-m", the empty string '' is inserted in front of sys.path.

The problem with pydoc.py is that there is specific code that modifies
sys.path, and will remove the standard lib from sys.path!
Look for this comment:
   # Scripts don't get the current directory in their path by default.
We could delete three lines there and avoid to remove
dirname(sys.argv[0]) from the path.
History
Date User Action Args
2008-02-07 13:21:05amaury.forgeotdarcsetspambayes_score: 0.00430771 -> 0.0043077148
recipients: + amaury.forgeotdarc, bpb
2008-02-07 13:21:05amaury.forgeotdarcsetspambayes_score: 0.00430771 -> 0.00430771
messageid: <1202390465.47.0.129095663679.issue2029@psf.upfronthosting.co.za>
2008-02-07 13:21:04amaury.forgeotdarclinkissue2029 messages
2008-02-07 13:21:04amaury.forgeotdarccreate