site.py on Windows

Don Dwiggins dwig at advancedmp.net
Wed Mar 14 21:46:06 EST 2001


I'm trying to use the site-packages facility, as documented for site.py, in
my ActiveState distribution (2.03, I think).  After some investigation, I
found that the site.py code essentially punts if the path separator
character isn't '/'.  After seeing that, I also noticed in the fine print of
the documentation: "Note that for some non-Unix systems, sys.prefix and
sys.exec_prefix are empty, and the path manipulations are skipped; however
the import of sitecustomize is still attempted."  Doh!

OK, has anyone fixed site.py to do the right stuff under Windows?  (I'd
rather not resort to writing a sitecustomize.)  If not, I'm willing to have
a go at it, and submit what I come up with.  It doesn't look particularly
difficult, but if there are subtle issues I'm not seeing, please let me
know.

-- 
Don Dwiggins                    "Solvitur Ambulando"
Advanced MP Technology
dwig at advancedmp.net





More information about the Python-list mailing list