[OE-core] [scripts][PATCH] devtool: upgrade: fix error of import recipeutils

Luck Hoang huyht1205 at gmail.com
Mon Feb 20 09:37:58 UTC 2017


upgrade.py imports oe.recipeutils in meta/lib/ but path to oe.recipeutils
is not provided. This fails populate_sdk_ext.

Signed-off-by: Luck Hoang <huyht1205 at gmail.com>
---
 scripts/lib/devtool/upgrade.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index a085f78..45b23be 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -27,6 +27,10 @@ import argparse
 import scriptutils
 import errno
 import bb
+
+devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib'
+sys.path = sys.path + [devtool_path]
+
 import oe.recipeutils
 from devtool import standard
 from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build
-- 
2.7.4




More information about the Openembedded-core mailing list