diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-17 18:09:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-26 14:25:21 -0600 |
commit | bf776679a73f3b9eae37aabd2be5754483039cb2 (patch) | |
tree | 939e4c78bc95bf5f8677be6b5fd4755de4609b7e /tools/dtoc/main.py | |
parent | 16287933a852bab2ac4985a770e08c9aa69d21b1 (diff) |
patman: Move to absolute imports
At present patman 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 patman to use absolute imports. This requires changes in tools which
use the patman libraries (which is most of them).
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/main.py')
-rwxr-xr-x | tools/dtoc/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/dtoc/main.py b/tools/dtoc/main.py index b1eee21f174..6c63d637a73 100755 --- a/tools/dtoc/main.py +++ b/tools/dtoc/main.py @@ -33,14 +33,15 @@ import unittest # Bring in the patman libraries our_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(our_path, '../patman')) +sys.path.append(os.path.join(our_path, '..')) # Bring in the libfdt module sys.path.insert(0, 'scripts/dtc/pylibfdt') sys.path.insert(0, os.path.join(our_path, '../../build-sandbox_spl/scripts/dtc/pylibfdt')) -import dtb_platdata -import test_util +from dtoc import dtb_platdata +from patman import test_util def run_tests(args): """Run all the test we have for dtoc |