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>
This commit is contained in:
parent
8a938d567f
commit
6810622484
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys, logging
|
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'))
|
'lib'))
|
||||||
|
|
||||||
import optparse
|
import optparse
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
import optparse, os, sys
|
import optparse, os, sys
|
||||||
|
|
||||||
# bitbake
|
# 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
|
||||||
import bb.parse
|
import bb.parse
|
||||||
from string import split, join
|
from string import split, join
|
||||||
|
|
Loading…
Reference in New Issue