patman: Tidy up sys.path changes
Now that we are using absolute paths we can remove some of the sys.path mangling that appears in the tools. We only need to add the path to 'tools/' so that everything can find modules relative to that directory. The special paths for finding pylibfdt remain. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -20,8 +20,9 @@ import unittest
|
||||
# Bring in the patman and dtoc libraries (but don't override the first path
|
||||
# in PYTHONPATH)
|
||||
our_path = os.path.dirname(os.path.realpath(__file__))
|
||||
for dirname in ['../patman', '../dtoc', '../concurrencytest', '..']:
|
||||
sys.path.insert(2, os.path.realpath(os.path.join(our_path, dirname)))
|
||||
sys.path.insert(2, os.path.join(our_path, '..'))
|
||||
|
||||
from patman import test_util
|
||||
|
||||
# Bring in the libfdt module
|
||||
sys.path.insert(2, 'scripts/dtc/pylibfdt')
|
||||
|
Reference in New Issue
Block a user