From 6810622484f9ab0df878717c0d2fa64271a794dc Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 26 Nov 2010 10:08:05 -0700 Subject: Use __file__, not sys.argv[0] (Bitbake rev: 97e92abe49663eee189c89c1dc91fe69891faf73) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 2 +- bitbake/bin/bitdoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index e6ce8d943..533886842 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -24,7 +24,7 @@ import os import sys, logging -sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), +sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) import optparse diff --git a/bitbake/bin/bitdoc b/bitbake/bin/bitdoc index 8043b2bd1..c2a7061d1 100755 --- a/bitbake/bin/bitdoc +++ b/bitbake/bin/bitdoc @@ -20,7 +20,7 @@ import optparse, os, sys # bitbake -sys.path.append(os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) +sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__), 'lib')) import bb import bb.parse from string import split, join -- cgit v1.2.3