[Pythonmac-SIG] Setting up Python Path for 10.3 using Bash
Robert White
kranki2 at earthlink.net
Fri Feb 13 00:11:10 EST 2004
Enclosed is my "~/.bash_profile" which among other things extends
Python Path to look in "~/bin" which can easily be changed to something
else. Please let me know if you see anything that I should update.
Thanks. Hope this helps.
Bob
-------- .bash_profile --------------
# .bash_profile for Darwin 7.0 (MacOSX 10.3)
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
if [ -d "/Developer/Tools" ]; then
export PATH=$PATH:/Developer/Tools
fi
if [ -d "/usr/local/bin" ]; then
export PATH=$PATH:/usr/local/bin
fi
if [ -d "/usr/local/mysql/bin" ]; then
export PATH="$PATH:/usr/local/mysql/bin"
fi
# Set up DarwinPorts if it is available.
if [ -d "/opt/local" ]; then
export CFLAGS="${CFLAGS} -I/opt/local/include"
export INFOPATH=/usr/share/info:/opt/local/share/info
export LDLAGS="${LDLAGS} -L/opt/local/lib"
export MANPATH=/usr/share/man:/usr/local/man:/opt/local/man
export PATH="/opt/local/bin:$PATH"
fi
export PATH="$HOME/bin:$PATH"
export BASH_ENV=$HOME/.bashrc
export PYTHONPATH=".:$HOME/bin"
export CVS_RSH=/usr/bin/ssh
if [ "super01" = "$USER" ]; then
export CVSROOT="/common01/CvsRepository"
else
export CVSROOT=":pserver:${USER}@192.168.1.10:/common01/CvsRepository"
fi
# Set up Fink if it is available.
#if [ -f "/sw/bin/init.sh" ]; then
# . /sw/bin/init.sh
#fi
unset USERNAME
# ~/bin/Folding1.sh
# ~/bin/Folding2.sh
-------- end of .bash_profile ------------
More information about the Pythonmac-SIG
mailing list