[Pythonmac-SIG] Yet another problem with two Pythons on Panth er

Stuart Bishop stuart at stuartbishop.net
Tue Dec 16 23:53:05 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> This would work, and there's even a way to do this without touching 
> sitecustomize.py: any line in a ".pth" file that starts with "import " 
> is simply executed. So there's nothing to stop us from creating a file 
> macpython-update-23.pth with the contents
> import sys; if sys.version_info[:3] == (2, 3, 0): sys.path.insert(1, 
> "/Library/Python/2.3/macpython-update-23")
> (this is the trick I wasn't going to tell you about:-)

And I thought *my* attempt was disgusting :-)

- --  
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/3+E1AfqZj7rGN0oRAln+AJ9DKcUfhHIxUGB24ZbBn5f1ZxVsowCfX1Ly
Ljf4JcUj+zNixVDLuyN98X8=
=cy30
-----END PGP SIGNATURE-----




More information about the Pythonmac-SIG mailing list