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 "<stdin>", line 1, in <module>
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 <tagunil@gmail.com>
This commit is contained in:
Ilya Tagunov 2021-01-24 15:44:21 +03:00 committed by Marti Bolivar
parent 2c06baaf50
commit fa7bba2d0c
1 changed files with 1 additions and 1 deletions

View File

@ -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