From: Fabian Groffen Date: Wed, 26 Aug 2009 09:46:57 +0000 (-0000) Subject: fix quickpkg now os is no longer imported X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c3d562bb271e08787b493284cb0e54ed2353eac6;p=portage.git fix quickpkg now os is no longer imported svn path=/main/branches/prefix/; revision=14156 --- diff --git a/bin/quickpkg b/bin/quickpkg index ec2f874f4..7240379eb 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -6,11 +6,12 @@ import errno, signal, sys from itertools import izip -# for an explanation on this logic, see pym/_emerge/__init__.py -if os.environ.__contains__("PORTAGE_PYTHONPATH"): - sys.path.insert(0, os.environ["PORTAGE_PYTHONPATH"]) +from os import environ as ose +from os import path as osp +if ose.__contains__("PORTAGE_PYTHONPATH"): + sys.path.insert(0, ose["PORTAGE_PYTHONPATH"]) else: - sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym")) + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp. realpath(__file__))), "pym")) import portage from portage import os