summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/repoman b/bin/repoman
index dd065c8d6..d7c69b32f 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -33,12 +33,10 @@ except ImportError:
from itertools import chain
from stat import S_ISDIR
-try:
- import portage
-except ImportError:
- from os import path as osp
- sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
- import portage
+from os import path as osp
+pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")
+sys.path.insert(0, pym_path)
+import portage
portage._disable_legacy_globals()
portage.dep._internal_warnings = True