Fix gentoolkit import pth in portage_utils.py.
authorW. Trevor King <wking@drexel.edu>
Mon, 6 Jun 2011 23:07:56 +0000 (19:07 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 6 Jun 2011 23:07:56 +0000 (19:07 -0400)
commitf7b96912eeb82ee4021a6fc45620c0b71b8ae765
tree3c11a835263781ccbe1eb86a3d79e59db8ac97e9
parentc1ebe124f247b9e363e3fc87c5b384e7e9f2e0ad
Fix gentoolkit import pth in portage_utils.py.

gentoolkit since 0.3.0 has been installed into the usual site-packages
directory, so there shouldn't be any need to monkey with sys.path.

If the user is running an older version that is under
/usr/lib/gentoolkit, we fall back to that.  Appending it to sys.path
(vs. prepending) allows us to override its location with PYTHONPATH:

  PYTHONPATH=".:$HOME/src/gentoolkit/pym" nosetests tests/test_portage_utils.py
g_pypi/portage_utils.py