-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 15.04.2010 14:58, schrieb Gerrit: > I'm trying to use sphinx.ext.autodoc to extract docstrings from my > code written for Python for S60 (Symbian mobile Python). > > When running "make html" I get the following: > > autodoc can't import/find module 'PlayMusic', it reported error: "No > module named audio", please check your spelling and sys.path > > It's not finding the audio module because this module only runs on the > S60 mobile device, not on normal desktop Python. Is there any way to > still use autodoc, e.g. by using autodoc-skip-member? By the way, does > anyone have a code example showing how autodoc-skip-member works?
autodoc-skip-member wouldn't work, since your problem happens way before the members are explored. I would write a dummy PlayMusic module (a simple Python module containing as many things as your other code requires on import time) and place it somewhere where it is found during the Sphinx run only. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkv68oYACgkQN9GcIYhpnLAgEQCeIfy8Mx5YUMlQvT9y7ylEFteE TmsAnjmGAycWaNnyaf4wZR6ATPq35Jlt =tgo+ -----END PGP SIGNATURE----- -- 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.
