Make emerge importable again without relying on module search path order
authorMarius Mauch <genone@gentoo.org>
Sat, 17 Feb 2007 10:46:49 +0000 (10:46 -0000)
committerMarius 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

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..123faf4809debe6197e7e2a3d84691d19ca63174 100644 (file)
@@ -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