From d401a8518fb4b0e8adeb34be8948fa780299870c Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 20 Aug 2015 14:10:29 +0300 Subject: wic: deferred call of hlp.get_wic_plugins_help() If get_wic_plugins_help is called from wic main module it calls git_bitbake_var at some point. This fails when wic is called from bitbake as 'bitbake -e' can't be run. Moved call of this method to help.py in order to call it later, when BitbakeVariables singleton is properly initialized to get variables from .env files. Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- scripts/lib/image/help.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/lib/image') diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index dc6ff36610..717d84755f 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image/help.py @@ -42,6 +42,8 @@ def display_help(subcommand, subcommands): return False hlp = subcommands.get(subcommand, subcommand_error)[2] + if callable(hlp): + hlp = hlp() pager = subprocess.Popen('less', stdin=subprocess.PIPE) pager.communicate(hlp) -- cgit v1.2.3