Added import of BuildToolError for EdkLogger
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 19 Mar 2008 02:46:31 +0000 (02:46 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 19 Mar 2008 02:46:31 +0000 (02:46 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1077 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Ecc/Ecc.py

index fec60ed..799ae3b 100644 (file)
@@ -26,6 +26,7 @@ from Common.DecClassObject import Dec
 from Common.DscClassObject import Dsc\r
 from Common.FdfClassObject import Fdf\r
 from Common.String import NormPath\r
+from Comm import BuildToolError\r
 import c\r
 \r
 ## Ecc\r
@@ -179,12 +180,12 @@ class Ecc(object):
         # Check workspace envirnoment\r
         #\r
         if "WORKSPACE" not in os.environ:\r
-            EdkLogger.error("ECC", ATTRIBUTE_NOT_AVAILABLE, "Environment variable not found", \r
+            EdkLogger.error("ECC", BuildToolError.ATTRIBUTE_NOT_AVAILABLE, "Environment variable not found", \r
                             ExtraData="WORKSPACE")\r
         else:\r
             EccGlobalData.gWorkspace = os.path.normpath(os.getenv("WORKSPACE"))\r
             if not os.path.exists(EccGlobalData.gWorkspace):\r
-                EdkLogger.error("ECC", FILE_NOT_FOUND, ExtraData="WORKSPACE = %s" % EccGlobalData.gWorkspace)\r
+                EdkLogger.error("ECC", BuildToolError.FILE_NOT_FOUND, ExtraData="WORKSPACE = %s" % EccGlobalData.gWorkspace)\r
             os.environ["WORKSPACE"] = EccGlobalData.gWorkspace\r
         #\r
         # Set log level\r