From: Marius Mauch Date: Sat, 17 Feb 2007 10:46:49 +0000 (-0000) Subject: Make emerge importable again without relying on module search path order X-Git-Tag: v2.2_pre1~1699 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1cb2d56ab5a25e965eed8698b3d61e51a670fb7e;p=portage.git Make emerge importable again without relying on module search path order svn path=/main/trunk/; revision=5977 --- 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