summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-03-03 17:52:08 +0000
committerAlec Warner <antarus@gentoo.org>2007-03-03 17:52:08 +0000
commita488f55f7b978b216670fd7f476a48d833560443 (patch)
treef5ddd88e3180a92bd8f121cc9e6cc9ce5e89c26d
parent4e088061d60d95e9e55cd2e1b51e285f67e0e56b (diff)
downloadportage-a488f55f7b978b216670fd7f476a48d833560443.tar.gz
portage-a488f55f7b978b216670fd7f476a48d833560443.tar.bz2
portage-a488f55f7b978b216670fd7f476a48d833560443.zip
you can't insert into sys.path without importing sys...
svn path=/main/trunk/; revision=6153
-rwxr-xr-xbin/emerge3
1 files changed, 3 insertions, 0 deletions
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 *