import sys, os
my_site = os.path.join(os.environ['HOME'],
    'python-modules/lib/python2.6/site-packages')
sys.path.insert(0, my_site)
How to tell Python to prefer module from $HOME/lib/python over /usr/lib/python?