summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg11
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index 76259c5c1..a6439e282 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -11,13 +11,10 @@ import signal
import sys
import tarfile
-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
from portage import os
from portage import xpak
from portage.dbapi.dep_expand import dep_expand