diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-10 22:24:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-10 22:24:37 +0000 |
commit | 4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc (patch) | |
tree | d42a6fbd98315040f94bfba227fe3aee6c0bad60 | |
parent | f17409309a4069aa652e95743acaeed3a7521082 (diff) | |
download | portage-4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc.tar.gz portage-4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc.tar.bz2 portage-4144e487f4ade62e4fb56f4ba9ce9713ff94e7cc.zip |
Add portage ImportError sys.path insertion.
svn path=/main/trunk/; revision=13987
-rwxr-xr-x | bin/quickpkg | 7 |
1 files changed, 7 insertions, 0 deletions
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 |