]> code.ossystems Code Review - openembedded-core.git/commit
scripts/wic: fix error of import wic module in eSDK environment
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Thu, 11 Jan 2018 14:55:21 +0000 (22:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Jan 2018 08:43:54 +0000 (08:43 +0000)
commitdcea30b885797ece3439cf1201795a975628d664
treec5e52dd230c47339ff4b697c636238b7768d0cc2
parent89df0d31c9dd22ceba4c95a2a56ca78e58d871a8
scripts/wic: fix error of import wic module in eSDK environment

wic modules in scripts/lib/ are needed for wic to work, but path to
the python module is not exported in eSDK environment and we were
using an absolutized path of wic script within the sysroots.

We now changed to use real script path instead, where the wic modules
are located. This will also resolved the tracebacks found when running
wic from within the eSDK environment.

Traceback (most recent call last):
  File "/tmp/deploy/sdk/poky_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/wic", line 58, in <module>
    from wic import WicError
ImportError: No module named 'wic'

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/wic