diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-10 20:26:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-10 20:26:20 +0000 |
commit | c3845fcf28236e4838e1cbae1626df9b6eb47f59 (patch) | |
tree | 3362a795c825766b86101f8d62bf5d6ac0ac428c /bin/md5check.py | |
parent | 6dcfd5fd466f0bab29f6c5aafc1c44846751110f (diff) | |
download | portage-c3845fcf28236e4838e1cbae1626df9b6eb47f59.tar.gz portage-c3845fcf28236e4838e1cbae1626df9b6eb47f59.tar.bz2 portage-c3845fcf28236e4838e1cbae1626df9b6eb47f59.zip |
Fix automatic sys.path insertions so that they're relative instead of absolute hard coded.
svn path=/main/trunk/; revision=5942
Diffstat (limited to 'bin/md5check.py')
-rwxr-xr-x | bin/md5check.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/md5check.py b/bin/md5check.py index 4cc6d86f9..d6e563f9f 100755 --- a/bin/md5check.py +++ b/bin/md5check.py @@ -8,7 +8,8 @@ os.environ["FEATURES"]="mirror cvs" try: import portage 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 import portage.util |