summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Ecc/Database.py
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-07-13 18:18:42 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-07-16 11:22:17 +0800
commitb6f6b636b038e780c87892b17835bb6d043523b8 (patch)
treee261db2eb2e5b7bd093e13c07b439595cee8e1bd /BaseTools/Source/Python/Ecc/Database.py
parente52b39ab8e9911dacb2c83a87bfe483397f1ea5f (diff)
downloadedk2-b6f6b636b038e780c87892b17835bb6d043523b8.tar.gz
edk2-b6f6b636b038e780c87892b17835bb6d043523b8.tar.bz2
edk2-b6f6b636b038e780c87892b17835bb6d043523b8.zip
BaseTools: Use absolute import in Ecc
Based on "futurize -f libfuturize.fixes.fix_absolute_import Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/Database.py')
-rw-r--r--BaseTools/Source/Python/Ecc/Database.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Ecc/Database.py b/BaseTools/Source/Python/Ecc/Database.py
index 2041175124..34f49f3cba 100644
--- a/BaseTools/Source/Python/Ecc/Database.py
+++ b/BaseTools/Source/Python/Ecc/Database.py
@@ -14,6 +14,7 @@
##
# Import Modules
#
+from __future__ import absolute_import
import sqlite3
import Common.LongFilePathOs as os, time
@@ -26,9 +27,9 @@ from Table.TableFunction import TableFunction
from Table.TablePcd import TablePcd
from Table.TableIdentifier import TableIdentifier
from Table.TableReport import TableReport
-from MetaFileWorkspace.MetaFileTable import ModuleTable
-from MetaFileWorkspace.MetaFileTable import PackageTable
-from MetaFileWorkspace.MetaFileTable import PlatformTable
+from .MetaFileWorkspace.MetaFileTable import ModuleTable
+from .MetaFileWorkspace.MetaFileTable import PackageTable
+from .MetaFileWorkspace.MetaFileTable import PlatformTable
from Table.TableFdf import TableFdf
##