diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-10 21:43:35 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-10 21:43:35 +0000 |
commit | b6d91984f5c298e172bd4e71d82919000971521f (patch) | |
tree | 02d5f51e82399dd54dc86be8041559ce075f4871 /bin/clean_locks | |
parent | 360c2740b9efa31775444795ffaf826e55dd34e1 (diff) | |
download | portage-b6d91984f5c298e172bd4e71d82919000971521f.tar.gz portage-b6d91984f5c298e172bd4e71d82919000971521f.tar.bz2 portage-b6d91984f5c298e172bd4e71d82919000971521f.zip |
Use os.path.realpath to handle symlinks properly.
svn path=/main/trunk/; revision=5945
Diffstat (limited to 'bin/clean_locks')
-rwxr-xr-x | bin/clean_locks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/clean_locks b/bin/clean_locks index cddb5261b..89473bd81 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -8,7 +8,7 @@ try: import portage.locks except ImportError: from os import path as osp - sys.path.insert(0, osp.join(osp.dirname(osp.dirname(__file__)), "pym")) + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) import portage.locks if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv: |