469,327 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

finding python modules

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.

I know that xml.dom.minidom is not built into sys.built_module_names,
cuz I viewed this variable under IDLE.

Could you tell me how Python finds this hierarchy?

( the reason for this knowledge is to figure out how to add XML_Objectify
to my path, but I'm trying to do it myself)

Thank you
Steve
Jul 18 '05 #1
2 1792
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.

--
Jay Dorsey
jay at jaydorsey dot com

Jul 18 '05 #2
>>> import xml.dom.minidom
xml.dom.minidom.__file__

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

----
levi

Jay Dorsey <ja*@jaydorsey.com> wrote in message news:<ma**************************************@pyt hon.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.

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Guyon Morée | last post: by
1 post views Thread by Jerald | last post: by
6 posts views Thread by mwt | last post: by
8 posts views Thread by Joshua J. Kugler | last post: by
275 posts views Thread by Astley Le Jasper | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.