On Thursday, July 11, 2002, at 08:50 PM, Brendan Lane Larson wrote:
> Also, I would prefer to control and use my own (/usr/local) version of > Python. Can I merely un-install the version of Python in /sw ... and > let my environment path variables direct all requests for Python usage > to my own controlled install in /usr/local? You can rearrange your PATH so that it checks /usr/local/ before it checks anything in /sw/. Back up the /sw/bin/init.*h (depends on whether you use sh-style or csh-style shell, I use bash so for me that's /sw/bin/init.sh) and then copy it, changing the part where your PATH is defined with the /sw/ stuff first (so that /usr/local/ comes before it). HOWEVER... this has some pretty far-reaching effects on your system that you might wish to consider. Namely, any executables in /usr/local/ will be preferred over those in /sw/*, so if you have some common names, it could be a problem. An alternative to doing this is to alias "python" in one of your rc-files. In bash, add this line to .bashrc (not sure how to do it in tcsh): alias python=/usr/local/bin/python or whatever your path to python is. Now every time your shell sees "python" it internally rewrites the reference to an absolute path to the /usr/local/ one. Erik ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
