<br><br><div class="gmail_quote">On Fri, Nov 20, 2009 at 12:28 PM, Kent Johnson <span dir="ltr">&lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Nov 20, 2009 at 3:05 PM, Dave Angel &lt;<a href="mailto:davea@ieee.org">davea@ieee.org</a>&gt; wrote:<br>
&gt; Eric Pavey wrote:<br>
<br>
&gt;&gt; lol, in usual fashion, after I hack through it, while in the docs, I find<br>
&gt;&gt; the &#39;fancy&#39; solution:<br>
&gt;&gt;<br>
&gt;&gt; import pkgutil<br>
&gt;&gt; import myPackage<br>
&gt;&gt; modules = pkgutil.iter_modules(myPackage.__path__)<br>
&gt;&gt; for p in modules:<br>
&gt;&gt;    print p[1]<br>
&gt;&gt;<br>
&gt;&gt; moduleA<br>
&gt;&gt; moduleB<br>
<br>
&gt; Thanks much for that.  It&#39;s apparently in the code, but it&#39;s not in the<br>
&gt; (Windows) help doc.    Is that a doc bug?<br>
<br>
</div>Seems to be. The pkgutil docs are quite sparse:<br>
<a href="http://docs.python.org/library/pkgutil.html" target="_blank">http://docs.python.org/library/pkgutil.html</a><br>
<font color="#888888"><br>
Kent</font></blockquote><div><br>I&#39;d seen a reference to that module online, looked in the docs, didn&#39;t
see much.  But I imported it into my IDE anyway, which exposes all the methods and classes, and I realized it did a lot more than the docs said.  So I
opened the module itself and poked around until I found iter_modules()
and after some trial and error got it workin&#39;<br></div></div>