summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/quickpkg7
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