for Arch, ModuleType in TemporaryDictionary:\r
RetVal[Arch, ModuleType] = TemporaryDictionary[Arch, ModuleType]\r
return RetVal\r
-\r
+ def LocalPkg(self):\r
+ module_path = self.MetaFile.File\r
+ subdir = os.path.split(module_path)[0]\r
+ TopDir = ""\r
+ while subdir:\r
+ subdir,TopDir = os.path.split(subdir)\r
+\r
+ for file_name in os.listdir(os.path.join(self.MetaFile.Root,TopDir)):\r
+ if file_name.upper().endswith("DEC"):\r
+ pkg = os.path.join(TopDir,file_name)\r
+ return pkg\r
@cached_class_function\r
def GetGuidsUsedByPcd(self):\r
self.Pcds\r