## @file\r
# This file is used to define each component of DEC file\r
#\r
-# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
##\r
# Import Modules\r
#\r
-import os\r
+import Common.LongFilePathOs as os\r
from String import *\r
from DataType import *\r
from Identification import *\r
import Database\r
from Parsing import *\r
import GlobalData\r
+from Common.LongFilePathSupport import OpenLongFilePath as open\r
\r
#\r
# Global variable\r
}\r
\r
\r
-## DecObject\r
-#\r
-# This class defined basic Dec object which is used by inheriting\r
-# \r
-# @param object: Inherited from object class\r
-#\r
-class DecObject(object):\r
- def __init__(self):\r
- object.__init__()\r
-\r
## Dec\r
#\r
# This class defined the structure used in Dec object\r
# \r
-# @param DecObject: Inherited from DecObject class\r
# @param Filename: Input value for Filename of Dec file, default is None\r
# @param IsMergeAllArches: Input value for IsMergeAllArches\r
# True is to merge all arches\r
# @var Contents: To store value for Contents, it is a structure as DecContents\r
# @var KeyList: To store value for KeyList, a list for all Keys used in Dec\r
#\r
-class Dec(DecObject):\r
+class Dec(object):\r
def __init__(self, Filename=None, IsToDatabase=False, IsToPackage=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):\r
self.Identification = Identification()\r
self.Package = PackageClass()\r
#\r
# Load Dec file if filename is not None\r
#\r
- if Filename != None:\r
+ if Filename is not None:\r
self.LoadDecFile(Filename)\r
\r
#\r