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 susam
Recipients susam
Date 2011-04-12.00:46:53
SpamBayes Score 0.003060686
Marked as misclassified No
Message-id <1302569214.25.0.583741904.issue11831@psf.upfronthosting.co.za>
In-reply-to
Content
Attached a one line fix that fixes this issue.

susam@nifty:~/pydoc-test$ pydoc -w ../pydoc-subject/
wrote calc.html
wrote calc.formulae.html
wrote config.html
wrote main.html
susam@nifty:~/pydoc-test$ ls
calc.formulae.html  calc.html  config.html  main.html

Diff:

--- /usr/lib/python2.7/pydoc.py.original	2011-04-12 04:56:19.000000000 +0530
+++ /usr/lib/python2.7/pydoc.py	2011-04-12 05:37:20.000000000 +0530
@@ -2299,6 +2299,7 @@
                 if ispath(arg) and os.path.isfile(arg):
                     arg = importfile(arg)
                 if writing:
+                    sys.path.insert(0, arg)
                     if ispath(arg) and os.path.isdir(arg):
                         writedocs(arg)
                     else:
History
Date User Action Args
2011-04-12 00:46:54susamsetrecipients: + susam
2011-04-12 00:46:54susamsetmessageid: <1302569214.25.0.583741904.issue11831@psf.upfronthosting.co.za>
2011-04-12 00:46:53susamlinkissue11831 messages
2011-04-12 00:46:53susamcreate