- IsFoundInFile = False\r
- MatchPcdFormat = re.match("^\s*(.+)\.(.+)\s*==\s*(.+)", Match.group(2))\r
- if MatchPcdFormat:\r
- ExtConfigDsc = open(ExtConfigDscFile, "r")\r
- ExtConfigDscLines = ExtConfigDsc.readlines()\r
- ExtConfigDsc.close()\r
- \r
- while len(ExtConfigDscLines):\r
- ExtConfigDscLine = ExtConfigDscLines.pop(0).strip()\r
- MatchExtConfigPcd = re.match("^\s*(.+)\s*\|\s*(.+)", ExtConfigDscLine)\r
- if MatchExtConfigPcd and IsFoundInFile == False:\r
- PcdFormatStr = str(str(MatchPcdFormat.group(1)) + "." + str(MatchPcdFormat.group(2)))\r
- ExtConfigPcd = str(MatchExtConfigPcd.group(1))\r
- Result = False\r
- if PcdFormatStr.strip() == ExtConfigPcd.strip():\r
- Result = self.EvaluateExpress(str(str(MatchExtConfigPcd.group(2)) + " == " + str(MatchPcdFormat.group(3))))\r
- IsFoundInFile = True\r
- break\r
- if IsFoundInFile == False:\r
- ConfigDsc = open(ConfigDscFile, "r")\r
- ConfigDscLines = ConfigDsc.readlines()\r
- ConfigDsc.close()\r
- while len(ConfigDscLines):\r
- ConfigDscLine = ConfigDscLines.pop(0).strip()\r
- MatchConfigPcd = re.match("^\s*(.+)\s*\|\s*(.+)", ConfigDscLine)\r
- if MatchConfigPcd:\r
- PcdFormatStr = str(str(MatchPcdFormat.group(1)) + "." + str(MatchPcdFormat.group(2)))\r
- ConfigPcd = str(MatchConfigPcd.group(1))\r
- Result = False\r
- if PcdFormatStr.strip() == ConfigPcd.strip():\r
- Result = self.EvaluateExpress(str(str(MatchConfigPcd.group(2)) + " == " + str(MatchPcdFormat.group(3))))\r
- IsFoundInFile = True\r
- break\r
- else:\r
- Result = self.EvaluateExpress(Match.group(2))\r