Message62149
| 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:05 | amaury.forgeotdarc | set | spambayes_score: 0.00430771 -> 0.0043077148 recipients: + amaury.forgeotdarc, bpb |
| 2008-02-07 13:21:05 | amaury.forgeotdarc | set | spambayes_score: 0.00430771 -> 0.00430771 messageid: <1202390465.47.0.129095663679.issue2029@psf.upfronthosting.co.za> |
| 2008-02-07 13:21:04 | amaury.forgeotdarc | link | issue2029 messages |
| 2008-02-07 13:21:04 | amaury.forgeotdarc | create | |