summaryrefslogtreecommitdiffstats
path: root/bin/regenworld
diff options
context:
space:
mode:
Diffstat (limited to 'bin/regenworld')
-rwxr-xr-xbin/regenworld5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/regenworld b/bin/regenworld
index 7b14c2131..d5e28dd7f 100755
--- a/bin/regenworld
+++ b/bin/regenworld
@@ -3,9 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import sys
-sys.path.insert(0, "/usr/lib/portage/pym")
-import os
+import sys, os
+sys.path.insert(0, os.environ.get("PORTAGE_PYM_PATH", "/usr/lib/portage/pym"))
import portage, string, re
__candidatematcher__ = re.compile("^[0-9]+: \\*\\*\\* emerge ")