X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FEcc%2FFileProfile.py;h=1d3fbf2d3b7914aa886b0434b09d3d6019741d8f;hb=f33d5d68abc02727dc828c1079e72ab65e1d63af;hp=689aee0975312c80bb32cc8ee3ae403ac10ce277;hpb=40d841f6a8f84e75409178e19e69b95e01bada0f;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/Ecc/FileProfile.py b/BaseTools/Source/Python/Ecc/FileProfile.py index 689aee0975..1d3fbf2d3b 100644 --- a/BaseTools/Source/Python/Ecc/FileProfile.py +++ b/BaseTools/Source/Python/Ecc/FileProfile.py @@ -1,7 +1,7 @@ ## @file # fragments of source file # -# Copyright (c) 2007, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -16,9 +16,11 @@ # Import Modules # +from __future__ import absolute_import import re -import os -from ParserWarning import Warning +import Common.LongFilePathOs as os +from .ParserWarning import Warning +from Common.LongFilePathSupport import OpenLongFilePath as open CommentList = [] PPDirectiveList = [] @@ -35,7 +37,7 @@ FunctionCallingList = [] # May raise Exception when opening file. # class FileProfile : - + ## The constructor # # @param self The object pointer @@ -53,5 +55,3 @@ class FileProfile : except IOError: raise Warning("Error when opening file %s" % FileName) - - \ No newline at end of file