git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@466 7335b...
[people/mcb30/basetools.git] / Source / Python / Common / InfClassObject.py
index e1ed07a..8bbc717 100644 (file)
@@ -265,8 +265,10 @@ class Inf(InfObject):
             LibraryClass.RecommendedInstance = Key[1]\r
             LibraryClass.FeatureFlag = Key[2]\r
             LibraryClass.SupArchList = LibraryClasses[Key]\r
-            if Key[3] != ['']:\r
+            if Key[3] != '':\r
                 LibraryClass.SupModuleList = GetSplitValueList(Key[3])\r
+            else:\r
+                LibraryClass.SupModuleList = DataType.SUP_MODULE_LIST\r
             self.Module.LibraryClasses.append(LibraryClass)\r
         \r
         #Packages\r
@@ -569,7 +571,7 @@ class Inf(InfObject):
         \r
 if __name__ == '__main__':\r
     m = Inf()\r
-    directory = 'C:\Documents and Settings\\hchen30\\Desktop\\prototype\\inf'\r
+    directory = 'C:\MyWorkspace\MdePkg\Library\BaseLib'\r
     fileList = []\r
     \r
     for f in os.listdir(directory):\r