BaseTools: Use absolute import in BPDG
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:
@ -21,6 +21,7 @@
|
|||||||
# Import Modules
|
# Import Modules
|
||||||
#
|
#
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
from __future__ import absolute_import
|
||||||
import Common.LongFilePathOs as os
|
import Common.LongFilePathOs as os
|
||||||
import sys
|
import sys
|
||||||
import encodings.ascii
|
import encodings.ascii
|
||||||
@ -30,8 +31,8 @@ from Common import EdkLogger
|
|||||||
from Common.BuildToolError import *
|
from Common.BuildToolError import *
|
||||||
from Common.BuildVersion import gBUILD_VERSION
|
from Common.BuildVersion import gBUILD_VERSION
|
||||||
|
|
||||||
import StringTable as st
|
from . import StringTable as st
|
||||||
import GenVpd
|
from . import GenVpd
|
||||||
|
|
||||||
PROJECT_NAME = st.LBL_BPDG_LONG_UNI
|
PROJECT_NAME = st.LBL_BPDG_LONG_UNI
|
||||||
VERSION = (st.LBL_BPDG_VERSION + " Build " + gBUILD_VERSION)
|
VERSION = (st.LBL_BPDG_VERSION + " Build " + gBUILD_VERSION)
|
||||||
|
@ -13,9 +13,10 @@
|
|||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
import Common.LongFilePathOs as os
|
import Common.LongFilePathOs as os
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import StringTable as st
|
from . import StringTable as st
|
||||||
import array
|
import array
|
||||||
import re
|
import re
|
||||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||||
|
Reference in New Issue
Block a user