diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-02 13:12:56 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:13:31 +0100 |
commit | 059dd9f733d295f9e7c6f3cb737f66f9cf3dd984 (patch) | |
tree | c56253719031157913b6b4068225ce3b82f89f4e /scripts | |
parent | d1421dfbd2136d7c87824b383eaba9fb8ec3a926 (diff) | |
download | poky-059dd9f733d295f9e7c6f3cb737f66f9cf3dd984.tar.gz |
scripts: python3: use explicit relative imports
Implicit relative imports within packages are not supported in
python 3. They have to be converted to explicit imports.
Used 'from .module import' syntax for relative imports.
(From meta-yocto rev: 8eb2befc544e29fd87ac1fc75886cc6d7f40ad90)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/bsp/engine.py | 2 | ||||
-rw-r--r-- | scripts/lib/bsp/kernel.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 03bd66ecef..5ff6c9836d 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py | |||
@@ -34,7 +34,7 @@ | |||
34 | import os | 34 | import os |
35 | import sys | 35 | import sys |
36 | from abc import ABCMeta, abstractmethod | 36 | from abc import ABCMeta, abstractmethod |
37 | from tags import * | 37 | from .tags import * |
38 | import shlex | 38 | import shlex |
39 | import json | 39 | import json |
40 | import subprocess | 40 | import subprocess |
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py index 3c4b79854d..fe7133da14 100644 --- a/scripts/lib/bsp/kernel.py +++ b/scripts/lib/bsp/kernel.py | |||
@@ -32,8 +32,7 @@ import shutil | |||
32 | from tags import * | 32 | from tags import * |
33 | import glob | 33 | import glob |
34 | import subprocess | 34 | import subprocess |
35 | from engine import create_context | 35 | from .engine import create_context |
36 | |||
37 | 36 | ||
38 | def find_bblayers(): | 37 | def find_bblayers(): |
39 | """ | 38 | """ |