.. autosummary:: :toctree: toplevelmodulename
is broken; the patch below is a quick fix. --Matthias # HG changeset patch # User Matthias Troffaes <[email protected]> # Date 1239635784 -3600 # Node ID 18a6bbf34a878073afaa3996202d21271b218660 # Parent adb7a3b4e9c0889eb9b43abf81bf6a9571f454a7 Fixed autosummary for top-level modules. diff -r adb7a3b4e9c0 -r 18a6bbf34a87 sphinx/ext/autosummary/ __init__.py --- a/sphinx/ext/autosummary/__init__.py Mon Apr 13 13:43:37 2009 +0000 +++ b/sphinx/ext/autosummary/__init__.py Mon Apr 13 16:16:24 2009 +0100 @@ -351,8 +351,10 @@ name_parts = name.split('.') try: modname = '.'.join(name_parts[:-1]) - __import__(modname) - return getattr(sys.modules[modname], name_parts[-1]) + # __import__(modname) raises ValueError if modname is empty + if modname: + __import__(modname) + return getattr(sys.modules[modname], name_parts[-1]) except (ImportError, IndexError, AttributeError): pass --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
