Created
June 12, 2011 09:35
-
-
Save sevas/1021380 to your computer and use it in GitHub Desktop.
python switcher bash funcs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export OLD_PATH=$PATH | |
select_system_python26() | |
{ | |
echo "Setting environment for System Python 2.6" | |
PATH="/System/Library/Frameworks/Python.framework/Versions/2.6/bin/:${OLD_PATH}" | |
export PATH | |
} | |
select_macpython31() | |
{ | |
echo "Setting environment for MacPython 3.1" | |
PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin/:${OLD_PATH}" | |
export PATH | |
} | |
select_macpython32() | |
{ | |
echo "Setting environment for MacPython 3.2" | |
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin/:${OLD_PATH}" | |
export PATH | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment