summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-02-17 10:46:49 +0000
committerMarius Mauch <genone@gentoo.org>2007-02-17 10:46:49 +0000
commit1cb2d56ab5a25e965eed8698b3d61e51a670fb7e (patch)
tree59fac57141cb89cc3627d74572f3f864f4fc7fea
parent7c214688b229c9d07fc2140cb2ea28e6d3b3e0e2 (diff)
downloadportage-1cb2d56ab5a25e965eed8698b3d61e51a670fb7e.tar.gz
portage-1cb2d56ab5a25e965eed8698b3d61e51a670fb7e.tar.bz2
portage-1cb2d56ab5a25e965eed8698b3d61e51a670fb7e.zip
Make emerge importable again without relying on module search path order
svn path=/main/trunk/; revision=5977
-rw-r--r--pym/emerge/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index e69de29bb..123faf480 100644
--- 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