projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c21468
)
Make emerge importable again without relying on module search path order
author
Marius Mauch
<genone@gentoo.org>
Sat, 17 Feb 2007 10:46:49 +0000
(10:46 -0000)
committer
Marius Mauch
<genone@gentoo.org>
Sat, 17 Feb 2007 10:46:49 +0000
(10:46 -0000)
svn path=/main/trunk/; revision=5977
pym/emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/emerge/__init__.py
b/pym/emerge/__init__.py
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..123faf4809debe6197e7e2a3d84691d19ca63174 100644
(file)
--- a/
pym/emerge/__init__.py
+++ b/
pym/emerge/__init__.py
@@
-0,0
+1,5
@@
+# To emulate old behavior, import everything from the normal emerge script
+import imp
+emerge = imp.load_source("emerge", "/usr/bin/emerge")
+from emerge import *
+del emerge, imp