summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/md5check.py')
-rwxr-xr-xbin/md5check.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/md5check.py b/bin/md5check.py
index 98f3c810..c83331ed 100755
--- a/bin/md5check.py
+++ b/bin/md5check.py
@@ -5,9 +5,11 @@
import os,sys,string
os.environ["FEATURES"]="mirror cvs"
-sys.path.insert(0, os.environ.get("PORTAGE_PYM_PATH", "/usr/lib/portage/pym"))
-
-import portage
+try:
+ import portage
+except ImportError:
+ sys.path.insert(0, "/usr/lib/portage/pym")
+ import portage
from threading import *
from output import red,green,blue,bold
from random import shuffle