On 02/18/2011 03:51 PM, Shashidhar P wrote:
Hello I want to do python documentation, I am using Pydoc but I am unable to
write python documentation for python file.
I have included docstrings for each classes and functions which I have
written. but when I run this command
@ pydoc myfilename.py
it shows no documentation for 'myfilename,py'
can anyone suggest me how to proceed.

When the argument is without a path component, then pydoc searches for the file in the current PYTHONPATH. So if your $CWD is not in PYTHONPATH you'd have to say:

pydoc ./myfilename.py

cheers,
- steve

--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to