summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-21 18:32:08 -0700
committerZac Medico <zmedico@gentoo.org>2010-11-23 17:37:24 -0800
commitdb5650ec49b9d0358add837a62cdac9f2a0cf88f (patch)
tree61c3c32bf022ce3201894d6284e4d5e74e43cda2 /bin
parentd427adf0f29f819eae26fda5dee22e099dd96238 (diff)
downloadportage-db5650ec49b9d0358add837a62cdac9f2a0cf88f.tar.gz
portage-db5650ec49b9d0358add837a62cdac9f2a0cf88f.tar.bz2
portage-db5650ec49b9d0358add837a62cdac9f2a0cf88f.zip
lock-helper.py: use PORTAGE_PYM_PATH for safety
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lock-helper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/lock-helper.py b/bin/lock-helper.py
index 5c332b2af..469d3a9da 100755
--- a/bin/lock-helper.py
+++ b/bin/lock-helper.py
@@ -2,7 +2,9 @@
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import os
import sys
+sys.path.insert(0, os.environ['PORTAGE_PYM_PATH'])
import portage
def main(args):