From fa7bba2d0cceb8fbecf1ed15d41258af3ecad1b5 Mon Sep 17 00:00:00 2001 From: Ilya Tagunov Date: Sun, 24 Jan 2021 15:44:21 +0300 Subject: [PATCH] commands: import importlib.util explicitly Python environments usually do not import importlib.util unless asked to do so specifically: >>> import importlib >>> importlib.util Traceback (most recent call last): File "", line 1, in AttributeError: module 'importlib' has no attribute 'util' Therefore it would be better to import importlib.util explicitly. Some commands (e.g. west zephyr-export) do not work on my setup without that change. Signed-off-by: Ilya Tagunov --- src/west/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/commands.py b/src/west/commands.py index cd997db..f4823f6 100644 --- a/src/west/commands.py +++ b/src/west/commands.py @@ -5,7 +5,7 @@ from abc import ABC, abstractmethod from collections import OrderedDict -import importlib +import importlib.util import itertools import os from pathlib import Path