1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 19:05:51 +01:00

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>
This commit is contained in:
Simon Glass
2020-04-17 18:09:02 -06:00
parent ce0dc2edfc
commit 0ede00fdaf
7 changed files with 34 additions and 33 deletions

View File

@@ -6,6 +6,7 @@
"""See README for more information"""
import doctest
import multiprocessing
import os
import re
@@ -14,20 +15,19 @@ import unittest
# Bring in the patman libraries
our_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(1, os.path.join(our_path, '../patman'))
sys.path.insert(1, os.path.join(our_path, '..'))
sys.path.insert(2, os.path.join(our_path, '../patman'))
# Our modules
import board
import bsettings
import builder
import checkpatch
import cmdline
import control
import doctest
import gitutil
from buildman import board
from buildman import bsettings
from buildman import builder
from buildman import cmdline
from buildman import control
from buildman import toolchain
import patchstream
import gitutil
import terminal
import toolchain
def RunTests(skip_net_tests):
import func_test