diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-17 18:09:02 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-26 14:25:21 -0600 |
commit | 0ede00fdaf1d2162350631294f57645675737d89 (patch) | |
tree | 9798b1d33790a198d9704b88137d0a4631ac4099 /tools/buildman/test.py | |
parent | ce0dc2edfc51dba5134d50a49ac8a18667fb55b2 (diff) | |
download | u-boot-0ede00fdaf1d2162350631294f57645675737d89.tar.gz |
buildman: Move to absolute imports
At present buildman sets the python path on startup so that it can access
the libraries it needs. If we convert to use absolute imports this is not
necessary.
Move buildman to use absolute imports. Also adjust moveconfig.py too since
it uses some buildman modules and cannot work without this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/test.py')
-rw-r--r-- | tools/buildman/test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py index 8b6d138f70..87175eeb63 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -13,15 +13,15 @@ import unittest our_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(our_path, '../patman')) -import board -import bsettings -import builder -import control -import command +from buildman import board +from buildman import bsettings +from buildman import builder +from buildman import control +from buildman import toolchain import commit +import command import terminal import test_util -import toolchain import tools use_network = True |