sys.path - stuff from nowhere?

R

Richard Kessler

Just build python 2.3.4 (needed for Zope and Plone). Trying to learn more
about use the data in sys.path from importing. When I run Python at the
command prompt, import sys and print sys.path I get stuff that makes no
sense. For example, /usr/local/lib/python23.zip.

Such a file does not even live on my debian machine, I would like to remove
it from the sys.path string but I do not understand how it is getting there
in the first place. Can anyone tell me how sys.path is initialized other
than PYTHONPATH (which I have as /usr/local)? I have no .pth files and
site-packages is empty at this point.

Thanks much in advance.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top