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>
This commit is contained in:
Gary Lin
2018-07-13 18:18:42 +08:00
committed by Yonghong Zhu
parent e52b39ab8e
commit b6f6b636b0
11 changed files with 51 additions and 42 deletions

View File

@ -16,9 +16,10 @@
# Import Modules
#
from __future__ import absolute_import
import re
import Common.LongFilePathOs as os
from ParserWarning import Warning
from .ParserWarning import Warning
from Common.LongFilePathSupport import OpenLongFilePath as open
CommentList = []
@ -54,5 +55,3 @@ class FileProfile :
except IOError:
raise Warning("Error when opening file %s" % FileName)