From 55c84777ee638be8735a5c421941e7eb71633bdf Mon Sep 17 00:00:00 2001 From: "Carsey, Jaben" Date: Mon, 16 Apr 2018 21:52:13 +0800 Subject: BaseTools: use predefined constants instead of local strings Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BaseTools/Source/Python/Workspace/WorkspaceDatabase.py') diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py index e554d84326..14dcb1ae81 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py @@ -305,7 +305,7 @@ determine whether database file is out of date!\n") PlatformList = [] for PlatformFile in self.TblFile.GetFileList(MODEL_FILE_DSC): try: - Platform = self.BuildObject[PathClass(PlatformFile), 'COMMON'] + Platform = self.BuildObject[PathClass(PlatformFile), TAB_COMMON] except: Platform = None if Platform is not None: @@ -313,7 +313,7 @@ determine whether database file is out of date!\n") return PlatformList def _MapPlatform(self, Dscfile): - Platform = self.BuildObject[PathClass(Dscfile), 'COMMON'] + Platform = self.BuildObject[PathClass(Dscfile), TAB_COMMON] if Platform is None: EdkLogger.error('build', PARSER_ERROR, "Failed to parser DSC file: %s" % Dscfile) return Platform -- cgit v1.2.3