Skip to contentSkip to conversation

devtool: upgrade: fix error of import recipeutils

PATCH New Luck Hoang 1 participant 1 message Feb 20, 2017

lore
Share & tools
lore

Luck Hoang

author
#0 lore raw

PATCH 1/1 devtool: upgrade: fix error of import recipeutils

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

---
 scripts/lib/devtool/upgrade.py | 4 ++++
 1 file changed, 4 insertions(+)
scripts/lib/devtool/upgrade.py +4 -0
index a085f78..45b23be 100644
@@ -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
Signature · 1 line
2.7.4