summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/GenMake.py
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-07-13 18:18:37 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-07-16 11:22:14 +0800
commit0ff3b52e065cc702a64d5a9016ee7926025dfbc7 (patch)
treea1bda7fc109da01b33b21615d0373d7e8dbda54e /BaseTools/Source/Python/AutoGen/GenMake.py
parent7de0083812245ec2d0b35667ef4a1aa262e006e0 (diff)
downloadedk2-0ff3b52e065cc702a64d5a9016ee7926025dfbc7.tar.gz
edk2-0ff3b52e065cc702a64d5a9016ee7926025dfbc7.tar.bz2
edk2-0ff3b52e065cc702a64d5a9016ee7926025dfbc7.zip
BaseTools: Use absolute import in AutoGen
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/AutoGen/GenMake.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/GenMake.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py
index 992de5490d..f1dc147541 100644
--- a/BaseTools/Source/Python/AutoGen/GenMake.py
+++ b/BaseTools/Source/Python/AutoGen/GenMake.py
@@ -13,6 +13,7 @@
## Import Modules
#
+from __future__ import absolute_import
import Common.LongFilePathOs as os
import sys
import string
@@ -23,7 +24,7 @@ from Common.MultipleWorkspace import MultipleWorkspace as mws
from Common.BuildToolError import *
from Common.Misc import *
from Common.StringUtils import *
-from BuildEngine import *
+from .BuildEngine import *
import Common.GlobalData as GlobalData
from collections import OrderedDict