From c3845fcf28236e4838e1cbae1626df9b6eb47f59 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 10 Feb 2007 20:26:20 +0000 Subject: Fix automatic sys.path insertions so that they're relative instead of absolute hard coded. svn path=/main/trunk/; revision=5942 --- bin/fix-db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/fix-db.py') diff --git a/bin/fix-db.py b/bin/fix-db.py index a7be2affa..f96ee74fc 100755 --- a/bin/fix-db.py +++ b/bin/fix-db.py @@ -8,7 +8,8 @@ import os,sys,re 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 from stat import * -- cgit v1.2.3-1-g7c22