you can't insert into sys.path without importing sys...
authorAlec Warner <antarus@gentoo.org>
Sat, 3 Mar 2007 17:52:08 +0000 (17:52 -0000)
committerAlec Warner <antarus@gentoo.org>
Sat, 3 Mar 2007 17:52:08 +0000 (17:52 -0000)
svn path=/main/trunk/; revision=6153

bin/emerge

index 1190780c31f5c431a32b86ee7be7be91566783c3..517586d1feedd0ce5be90015210df3db73ad5a99 100755 (executable)
@@ -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 *