diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2010-10-23 15:57:27 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2010-10-23 15:57:27 +0200 |
commit | 043319c4d24fa09a3645eb714ef15b979c8f9c67 (patch) | |
tree | b5fc28b71c43d76adc47a7533ed9ff4d7ba0ead9 | |
parent | Remove unused modules (diff) | |
download | gentoo-bumpchecker-043319c4d24fa09a3645eb714ef15b979c8f9c67.tar.gz gentoo-bumpchecker-043319c4d24fa09a3645eb714ef15b979c8f9c67.tar.bz2 gentoo-bumpchecker-043319c4d24fa09a3645eb714ef15b979c8f9c67.zip |
Move code around to allow usage of portage constants
-rw-r--r-- | modules/portage_module.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/portage_module.py b/modules/portage_module.py index 2209544..d15deb5 100644 --- a/modules/portage_module.py +++ b/modules/portage_module.py @@ -5,13 +5,14 @@ # the portage module. import os, sys import package_module -sys.path = ["/usr/lib/portage/pym"] + sys.path -os.environ["PORTAGE_CALLER"] = "depchecker" import portage import portage.util import clioptions_module +sys.path = [portage.PORTAGE_PYM_PATH] + sys.path +os.environ["PORTAGE_CALLER"] = "depchecker" + def get_dbtree(): return "porttree" |