diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-09 15:54:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-13 22:33:20 +0100 |
commit | 7141e488092f9833e349ce95f856dd9e26aa0f7b (patch) | |
tree | a97e27c16455b2b11fa87cebff80cb00acbaa9f5 /scripts/send-error-report | |
parent | d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49 (diff) | |
download | poky-7141e488092f9833e349ce95f856dd9e26aa0f7b.tar.gz |
wic: Use __file__ instead of sys.argv[0]
Using __file__ makes the code work independently of the way
it's loaded. In some cases wic can be imported by another
program without executing it. sys.argv[0] would not contain
path to the wic in such a cases.
This is an enabler for unit testing with nose framework.
(From OE-Core rev: 7166262032648dbbc8b4b476c8770e35b1d4e234)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/send-error-report')
0 files changed, 0 insertions, 0 deletions