From 043319c4d24fa09a3645eb714ef15b979c8f9c67 Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Sat, 23 Oct 2010 15:57:27 +0200 Subject: Move code around to allow usage of portage constants --- modules/portage_module.py | 5 +++-- 1 file 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" -- cgit v1.2.3-65-gdbad