projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f174093
)
Add portage ImportError sys.path insertion.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Aug 2009 22:24:37 +0000
(22:24 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Aug 2009 22:24:37 +0000
(22:24 -0000)
svn path=/main/trunk/; revision=13987
bin/quickpkg
patch
|
blob
|
history
diff --git
a/bin/quickpkg
b/bin/quickpkg
index 80bb98b320c2640e5abe400273042eddf3b620bd..0a1346e4ec271b77869006b05bf3499aa293a058 100755
(executable)
--- 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