diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-26 10:08:05 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:45 +0000 |
commit | 6810622484f9ab0df878717c0d2fa64271a794dc (patch) | |
tree | 0b014da18c70840b8f501c700e3d7af9ca89aa8e /bitbake/bin/bitdoc | |
parent | 8a938d567f4439e114e50d93edc3c72a55f7b4d8 (diff) | |
download | poky-6810622484f9ab0df878717c0d2fa64271a794dc.tar.gz |
Use __file__, not sys.argv[0]
(Bitbake rev: 97e92abe49663eee189c89c1dc91fe69891faf73)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/bin/bitdoc')
-rwxr-xr-x | bitbake/bin/bitdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitdoc b/bitbake/bin/bitdoc index 8043b2bd1c..c2a7061d1b 100755 --- a/bitbake/bin/bitdoc +++ b/bitbake/bin/bitdoc | |||
@@ -20,7 +20,7 @@ | |||
20 | import optparse, os, sys | 20 | import optparse, os, sys |
21 | 21 | ||
22 | # bitbake | 22 | # bitbake |
23 | sys.path.append(os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 23 | sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__), 'lib')) |
24 | import bb | 24 | import bb |
25 | import bb.parse | 25 | import bb.parse |
26 | from string import split, join | 26 | from string import split, join |