Fix a typo, which might cause runtime exception in python code.
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 12 Sep 2007 03:07:29 +0000 (03:07 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 12 Sep 2007 03:07:29 +0000 (03:07 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@713 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index bf4b16b..02bcf67 100644 (file)
@@ -37,7 +37,7 @@ class Build():
         self.EdkToolsPath = os.getenv("EDK_TOOLS_PATH")\r
         self.WorkSpace    = os.getenv("WORKSPACE")\r
         self.Path         = os.getenv("PATH")\r
-        self.Opt          = opt\r
+        self.Opt  = opt\r
         self.Args         = args\r
         self.ArgList      = ['all', 'genc', 'genmake', 'modules', 'libraries', 'clean', 'cleanall', 'cleanlib', 'run']\r
         self.TargetTxt    = TargetTxtClassObject()\r
@@ -557,7 +557,7 @@ def main():
 #\r
     if build.Opt.DSCFILE == None:\r
         build.Opt.DSCFILE = build.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_ACTIVE_PLATFORM]\r
-        if os.path.isfile(os.path.normpath(self.Opt.DSCFILE)) == True:\r
+        if os.path.isfile(os.path.normpath(build.Opt.DSCFILE)) == True:\r
             EdkLogger.quiet("ERROR: The file: %s specified in target.txt should be described in a WORKSPACE realtive path!" % self.Opt.DSCFILE)\r
             self.isexit(1)\r
         if build.Opt.DSCFILE != '' and os.path.isfile(os.path.normpath(os.path.join(build.WorkSpace, build.Opt.DSCFILE))) == False:\r