Search framework database file at the $(WORKSPACE)/Conf directory
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 30 Mar 2009 09:27:31 +0000 (09:27 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 30 Mar 2009 09:27:31 +0000 (09:27 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1540 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/MigrationMsa2Inf/MigrationMsa2Inf.py

index b25f6d4..01de212 100644 (file)
@@ -193,20 +193,13 @@ def main():
         pass
 
 
         pass
 
 
-    FdbFile = ""
-    FdbPath = os.path.join(workspace, "Tools")
-    FdbPath = os.path.join(FdbPath, "Conf")
+    FdbPath = os.path.join(workspace, "Conf")
     FdbPath = os.path.join(FdbPath, "FrameworkDatabase.db")
     if os.path.exists(FdbPath):
         FdbFile = FdbPath
     else:
     FdbPath = os.path.join(FdbPath, "FrameworkDatabase.db")
     if os.path.exists(FdbPath):
         FdbFile = FdbPath
     else:
-        FdbPath = os.path.join(workspace, "Conf")
-        FdbPath = os.path.join(FdbPath, "FrameworkDatabase.db")
-        if os.path.exists(FdbPath):
-            FdbFile = FdbPath
-        else:
-            print "ERROR: E0001: WORKSPACE does not contain the FrameworkDatabase File.\n  Please run EdkSetup from the EDK II install directory.\n"
-            sys.exit(1)
+        print "ERROR: E0001: WORKSPACE does not contain the FrameworkDatabase File.\n  Please run EdkSetup from the EDK II install directory.\n"
+        sys.exit(1)
 
     Fdb = openDatabase(FdbFile)
     if (Fdb == 'None'):
 
     Fdb = openDatabase(FdbFile)
     if (Fdb == 'None'):