Update GenFds to convert workspace path to OS normcase path
authorlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 9 Jul 2009 02:34:57 +0000 (02:34 +0000)
committerlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 9 Jul 2009 02:34:57 +0000 (02:34 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1643 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/GenFds/GenFds.py

index a559e6b..33d01b0 100644 (file)
@@ -83,10 +83,10 @@ def main():
             EdkLogger.error("GenFds", BuildToolError.PARAMETER_INVALID, "WORKSPACE is invalid",
                             ExtraData="Please use '-w' switch to pass it or set the WORKSPACE environment variable.")
         else:
-            Workspace = Options.Workspace
+            Workspace = os.path.normcase(Options.Workspace)
             GenFdsGlobalVariable.WorkSpaceDir = Workspace
             if 'EDK_SOURCE' in os.environ.keys():
-                GenFdsGlobalVariable.EdkSourceDir = os.environ['EDK_SOURCE']
+                GenFdsGlobalVariable.EdkSourceDir = os.path.normcase(os.environ['EDK_SOURCE'])
             if (Options.debug):
                 GenFdsGlobalVariable.VerboseLogger( "Using Workspace:" + Workspace)
         os.chdir(GenFdsGlobalVariable.WorkSpaceDir)