From 1cb2d56ab5a25e965eed8698b3d61e51a670fb7e Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Sat, 17 Feb 2007 10:46:49 +0000 Subject: [PATCH] Make emerge importable again without relying on module search path order svn path=/main/trunk/; revision=5977 --- pym/emerge/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.26.2