site.py on Windows
Chris Gonnerman
chris.gonnerman at usa.net
Thu Mar 15 21:54:24 EST 2001
Frankly, I just hack site.py like so:
# site.py, Python 2.0, about line 259
addsitedir("c:/python/lib/site-packages")
It may not be the right way to do it, but it works for me. Don't
forget to substitute your Python install directory.
----- Original Message -----
From: "Don Dwiggins" <dwig at advancedmp.net>
To: <python-list at python.org>
Sent: Wednesday, March 14, 2001 8:46 PM
Subject: site.py on Windows
> 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
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list