diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/__init__.py | 2 | ||||
-rwxr-xr-x | scripts/oe-test | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index fa6e1a34fd..c9d7ade9ff 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py | |||
@@ -147,6 +147,8 @@ def check_workspace_recipe(workspace, pn, checksrc=True, bbclassextend=False): | |||
147 | Check that a recipe is in the workspace and (optionally) that source | 147 | Check that a recipe is in the workspace and (optionally) that source |
148 | is present. | 148 | is present. |
149 | """ | 149 | """ |
150 | import bb.runqueue | ||
151 | _, pn = bb.runqueue.split_mc(pn) | ||
150 | 152 | ||
151 | workspacepn = pn | 153 | workspacepn = pn |
152 | 154 | ||
diff --git a/scripts/oe-test b/scripts/oe-test index 55985b0b24..efb83c3e78 100755 --- a/scripts/oe-test +++ b/scripts/oe-test | |||
@@ -7,14 +7,18 @@ | |||
7 | # SPDX-License-Identifier: MIT | 7 | # SPDX-License-Identifier: MIT |
8 | # | 8 | # |
9 | 9 | ||
10 | import os | ||
11 | import sys | ||
12 | import argparse | 10 | import argparse |
11 | import glob | ||
13 | import logging | 12 | import logging |
13 | import os | ||
14 | import sys | ||
14 | 15 | ||
15 | scripts_path = os.path.dirname(os.path.realpath(__file__)) | 16 | scripts_path = os.path.dirname(os.path.realpath(__file__)) |
16 | lib_path = scripts_path + '/lib' | 17 | lib_path = os.path.join(scripts_path, 'lib') |
17 | sys.path = sys.path + [lib_path] | 18 | sys.path.append(lib_path) |
19 | meta_lib_paths = glob.glob(scripts_path + '/*/lib', root_dir=scripts_path, recursive=True) | ||
20 | for p in meta_lib_paths: | ||
21 | sys.path.append(p) | ||
18 | import argparse_oe | 22 | import argparse_oe |
19 | import scriptutils | 23 | import scriptutils |
20 | 24 | ||