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:28:33 +0100 |
commit | 7166262032648dbbc8b4b476c8770e35b1d4e234 (patch) | |
tree | 26d3fa8b0225ee1f11eba2d9aa89ffc4bc328d08 /oe-init-build-env-memres | |
parent | e07dd9b9c71960fbeded162ed52fbce06de620e9 (diff) | |
download | openembedded-core-7166262032648dbbc8b4b476c8770e35b1d4e234.tar.gz openembedded-core-7166262032648dbbc8b4b476c8770e35b1d4e234.tar.bz2 openembedded-core-7166262032648dbbc8b4b476c8770e35b1d4e234.zip |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'oe-init-build-env-memres')
0 files changed, 0 insertions, 0 deletions