summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/archive-conf')
-rwxr-xr-xbin/archive-conf8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/archive-conf b/bin/archive-conf
index 0417e97c..b3d17cc6 100755
--- a/bin/archive-conf
+++ b/bin/archive-conf
@@ -11,9 +11,13 @@
#
import os, sys, string
-sys.path.insert(0, os.environ.get("PORTAGE_PYM_PATH", "/usr/lib/portage/pym"))
+try:
+ import portage
+except ImportError:
+ sys.path.insert(0, "/usr/lib/portage/pym")
+ import portage
-import portage, dispatch_conf
+import dispatch_conf
FIND_EXTANT_CONTENTS = "find %s -name CONTENTS"