From: Zac Medico Date: Mon, 10 Aug 2009 22:24:37 +0000 (-0000) Subject: Add portage ImportError sys.path insertion. X-Git-Tag: v2.2_rc39~118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc;p=portage.git Add portage ImportError sys.path insertion. svn path=/main/trunk/; revision=13987 --- 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