Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#362 --exclude doesn't exclude from multiple source trees

devel (cvs)
open
nobody
None
5
2013-10-02
2013-10-02
Jamie McNaught
No

The --exclude functionality only appears to work for the first module passed to epydoc. In the attached example, if you use the command:
python epydoc/3.0.1/lib/epydoc/cli.py -v --exclude=constants -o ~/tmp/epydoc/experiment/ dir1/A/ dir2/B/
then only the constants in dir1/A will be excluded. If you reverse this:
python epydoc/3.0.1/lib/epydoc/cli.py -v --exclude=constants -o ~/tmp/epydoc/experiment/ dir2/B/ dir1/A/
then the constants in dir2/B will be excluded.

Additionally, if you import the constants using:
from A import constants
the generated documentation correctly excludes A.constants
Commenting that out and uncommenting:
from A.constants import *
results in 'A.constants' being included in the 'Module Hierarchy' (albeit it's not a link).

Hope this is clear.

Regards,

Jamie

1 Attachments

Discussion