]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipetool: create: fix broken import in npm module
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 23 Aug 2017 12:14:47 +0000 (00:14 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Aug 2017 12:47:49 +0000 (13:47 +0100)
With "import oe" in create_npm.py you get "AttributeError: module 'oe'
has no attribute 'package'" when it tries to call
oe.package.npm_split_package_dirs().

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create_npm.py

index 07fcf4d883f2fdfb93e2c20b4f86af78411a9ae9..6252e915b5a03d6e13c8a5f8d88fb04dab352c50 100644 (file)
@@ -166,7 +166,7 @@ class NpmRecipeHandler(RecipeHandler):
 
     def process(self, srctree, classes, lines_before, lines_after, handled, extravalues):
         import bb.utils
-        import oe
+        import oe.package
         from collections import OrderedDict
 
         if 'buildsystem' in handled: