import portage, like trunk does
authorFabian Groffen <grobian@gentoo.org>
Wed, 26 Aug 2009 10:10:57 +0000 (10:10 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 26 Aug 2009 10:10:57 +0000 (10:10 -0000)
svn path=/main/branches/prefix/; revision=14160

bin/dispatch-conf

index bdc5c82ec93f0a3ef36bae83979fcd35bc73e44c..40efa2c150d2e988af9e76c9e62e293d468a71b2 100755 (executable)
@@ -18,6 +18,13 @@ if not hasattr(__builtins__, "set"):
 from stat import *
 from random import *
 import atexit, commands, re, shutil, stat, sys
+from os import environ as ose
+from os import path as osp
+if ose.__contains__("PORTAGE_PYTHONPATH"):
+    sys.path.insert(0, ose["PORTAGE_PYTHONPATH"])
+else:
+    sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.                    realpath(__file__))), "pym"))
+import portage
 
 from portage import os
 from portage import dispatch_conf