finding python modules

Levente Sandor sandorlevi at yahoo.com
Sun Dec 7 03:45:41 EST 2003


>>> import xml.dom.minidom
>>> xml.dom.minidom.__file__

'/usr/local/lib/python2.3/xml/dom/minidom.pyc'

----
levi

Jay Dorsey <jay at jaydorsey.com> wrote in message news:<mailman.178.1070767129.16879.python-list at python.org>...
> On Sun, Dec 07, 2003 at 12:54:06AM +0000, python newbie wrote:
> > Guys,
> > Very beginner question.
> > I'm importing xml.dom.minidom at the top of my file.
> > 
> > I'm trying to figure out where the heck this is. According to Quick Python,
> > there should be folders on my drive
> >  (using XP), under c:\python23,   named xml, then underneath: dom, etc.  But
> > there isn't.
> 
> You missed one folder under the python folder: Lib. Full path should
> resemble something like:
> 
> C:\Python23\Lib\xml
> 
> Sometimes you can also find modules installed in the site-packages directory
> underneath the lib folder.




More information about the Python-list mailing list