diff options
Diffstat (limited to 'scripts/lib/mic/plugin.py')
| -rw-r--r-- | scripts/lib/mic/plugin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/mic/plugin.py b/scripts/lib/mic/plugin.py index dec0e5bf84..585fd6d563 100644 --- a/scripts/lib/mic/plugin.py +++ b/scripts/lib/mic/plugin.py | |||
| @@ -53,9 +53,10 @@ class PluginMgr(object): | |||
| 53 | self.layers_path = get_bitbake_var("BBLAYERS") | 53 | self.layers_path = get_bitbake_var("BBLAYERS") |
| 54 | layer_dirs = [] | 54 | layer_dirs = [] |
| 55 | 55 | ||
| 56 | for layer_path in self.layers_path.split(): | 56 | if self.layers_path is not None: |
| 57 | path = os.path.join(layer_path, SCRIPTS_PLUGIN_DIR, ptype) | 57 | for layer_path in self.layers_path.split(): |
| 58 | layer_dirs.append(path) | 58 | path = os.path.join(layer_path, SCRIPTS_PLUGIN_DIR, ptype) |
| 59 | layer_dirs.append(path) | ||
| 59 | 60 | ||
| 60 | path = os.path.join(dl, ptype) | 61 | path = os.path.join(dl, ptype) |
| 61 | layer_dirs.append(path) | 62 | layer_dirs.append(path) |
