diff options
Diffstat (limited to 'bin/clean_locks')
-rwxr-xr-x | bin/clean_locks | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/clean_locks b/bin/clean_locks index 3b3c33c5c..cddb5261b 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -7,7 +7,8 @@ import os,sys,errno try: import portage.locks except ImportError: - sys.path.insert(0, "/usr/lib/portage/pym") + from os import path as osp + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(__file__)), "pym")) import portage.locks if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv: |