In epydoc.py, line 12:
sys.path = [d for d in sys.path if os.path.abspath(d)
is supposed to remove from the Python Path the
directory of the epydoc.py script itself, so it is not
confused with the epydoc package.
Unfortunately the code makes the assumption that the
current directory (cwd) is those of the script. It
won't work if it is not the case.
Since sys.path gives the directory of the script
while it is executed, it is enough to remove this first
element from sys.path => replace line 12 with:
It works for me, at least.