I don't understand that part. When the docs are being generated we set
_is_epydoc to True, so we can change things for the doc generation.
Let me explain the idea. We want to document the Window class, not
BaseWindow.
Now pyglet is doing this:
Define the BaseWindow class.
If _is_epydoc:
Window = BaseWindow, and delete BaseWindow.
else:
Import Window from the platform specific module.
But sphinx needs to get the source code for the attribute documentation
magic to work, so this fails.
The idea is to do it the other way around, if possible:
Define the Window class.
if _is_epydoc:
Nothing to do.
else:
BaseWindow = Window, and delete Window.
Import Window from the platform specific module.
Regards.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.