473,226 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

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 1870
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Guyon Morée | last post by:
Hi, I'm developing an application with Delphi+Python. Distributing such an application requires me to include all the used modules + python23.dll. At the moment I'm using 'trial-and-error' on...
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4...
6
by: mwt | last post by:
When I'm rewriting code (cutting and pasting pieces from earlier modules), is there a quick way to determine if I have imported all the necessary modules? I am used to working in Java, where the...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
8
by: Joshua J. Kugler | last post by:
So, I have: ModTest __init__.py AModule.py BModule.py CModule.py All works fine. However, when I import ModTest, I would like it to discover and store the names of the modules beneath it,...
0
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.