From 4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 10 Aug 2009 22:24:37 +0000 Subject: [PATCH] Add portage ImportError sys.path insertion. svn path=/main/trunk/; revision=13987 --- bin/quickpkg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/quickpkg b/bin/quickpkg index 80bb98b32..0a1346e4e 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -6,6 +6,13 @@ import errno, signal, sys, os from itertools import izip +try: + import portage +except ImportError: + from os import path as osp + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) + import portage + def quickpkg_main(options, args, eout): from portage import catsplit, dep_expand, flatten, isvalidatom, xpak from portage.dep import use_reduce, paren_reduce -- 2.26.2