binman: Correct some import statements

Some of these were not converted when binman moved to use absolute paths.
Fix them.

Also drop the import of 'test' which is a directory, not a module.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2020-08-05 13:27:47 -06:00
parent 87d43329ef
commit 07237988dc
4 changed files with 4 additions and 5 deletions

View File

@ -123,7 +123,7 @@ def ReadEntry(image_fname, entry_path, decomp=True):
data extracted from the entry
"""
global Image
from image import Image
from binman.image import Image
image = Image.FromFile(image_fname)
entry = image.FindEntryPath(entry_path)
@ -496,7 +496,7 @@ def Binman(args):
return 0
# Put these here so that we can import this module without libfdt
from image import Image
from binman.image import Image
from binman import state
if args.cmd in ['ls', 'extract', 'replace']:

View File

@ -29,7 +29,7 @@ from dtoc import fdt
from dtoc import fdt_util
from binman.etype import fdtmap
from binman.etype import image_header
from image import Image
from binman.image import Image
from patman import command
from patman import test_util
from patman import tools

View File

@ -6,7 +6,7 @@
import unittest
from image import Image
from binman.image import Image
from patman.test_util import capture_sys_output
class TestImage(unittest.TestCase):

View File

@ -61,7 +61,6 @@ def RunTests(debug, verbosity, processes, test_preserve_dirs, args, toolpath):
from binman import fdt_test
from binman import ftest
from binman import image_test
from binman import test
import doctest
result = unittest.TestResult()