« My Tools of Choice - Getting back into Python. »

Python 2.5 OS X installer broke my .bashrc settings.

10 March 2007

The other day I decided to upgrade Python in my mac mini from version 2.3 to the most current release of 2.5. I opted to do this using the OS X install found here. After installing it appeared that it had completely hosed my custom PATH settings in my .bashrc and .bash_login files.

Luckily, for me that is, it had only created a .bash_profile file that was overriding my .bashrc and .bash_login setting. Fixing this was simple I just did the following

mv .bash_profile .bash_profile.broken
source .bashrc

Then I just needed to append the PATH entry in .bash_profile.broken
to the end of my PATH export statement in my .bashrc file the result looked something like the following:

PATH=”/oldpath:/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH”


Leave a reply