[U-Boot] [PATCH v2 05/12] binman: Avoid setting sys.path globally

Simon Glass sjg at chromium.org
Thu Jun 7 23:50:45 UTC 2018


On 1 June 2018 at 07:38, Simon Glass <sjg at chromium.org> wrote:
> At present we set the Python path at the start of binman so we can read
> modules in the 'etype' directory. This is a bit messy since it affects
> 'import' statements through binman.
>
> Adjust the code to set the path locally, just where it is needed. Move
> the 'entry' module in with the other base modules to help with this. It
> makes more sense here anyway since it does not implement an entry type.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  tools/binman/binman.py            |  3 ---
>  tools/binman/{etype => }/entry.py | 10 ++++++++++
>  2 files changed, 10 insertions(+), 3 deletions(-)
>  rename tools/binman/{etype => }/entry.py (96%)
>
Applied to u-boot-dm


More information about the U-Boot mailing list