From: Alec Warner Date: Sat, 3 Mar 2007 17:52:08 +0000 (-0000) Subject: you can't insert into sys.path without importing sys... X-Git-Tag: v2.2_pre1~1617 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a488f55f7b978b216670fd7f476a48d833560443;p=portage.git you can't insert into sys.path without importing sys... svn path=/main/trunk/; revision=6153 --- diff --git a/bin/emerge b/bin/emerge index 1190780c3..517586d1f 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1,9 +1,12 @@ #!/usr/bin/python +# Copyright Gentoo Foundation 2006 +# Portage Emerge bits try: from emerge import * except ImportError: from os import path as osp + import sys sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) from emerge import *