On 4 Jun 2014, at 21:10, Magnus Andersson
ok, you might be on to something here
On Unixes, .bash_profile is only sourced when you log in but not when you open a new terminal. It is different by default on MacOS X because of the way Terminal.app is configured but if you changed that, then .bash_profile won't be sourced. Try putting your export's in .bashrc instead or open Terminal > Preferences > Startup and select "Shell opens with: Default Login Shell".
echo $PATH /opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/magnus/.venvburrito/bin:/sw/lib/cctbx/cctbx_build/bin:/sw/bin:/sw/sbin:/Users/magnus/Downloads/cctbx_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
Ok. MacPorts installs python27 but not python, so "type python" gets the system one. You need to do port select --set python27 to get python mapped to /opt/local/bin/python27. Luc