[Tutor] sys.path

Magnus Lyckå magnus at thinkware.se
Fri Aug 8 00:43:32 EDT 2003


At 20:54 2003-08-05 -0400, Gus Tabares wrote:
>C:\WINNT\system32\python23.zip
>C:\Python23\lib\plat-win
> >>>
>
>What are these and if they do not exist why are they in sys.path? Anyone
>know? Just curious..no big deal:)

This is new in Python 2.3. I hadn't observed this, or heard about it,
so I'm speculating below...

I assume the first has to do with the new feature of zipped python
modules, see http://www.python.org/doc/current/whatsnew/node5.html
and http://www.python.org/peps/pep-0273.html

For the latter, see http://www.python.org/doc/essays/packages.html
I assume all platforms now check a plat-<my platform> directory,
which might or might not exist, depending on whether it's needed or
not.




--
Magnus Lycka (It's really Lyck&aring;), magnus at thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language 




More information about the Tutor mailing list