]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/FileProfile.py
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / FileProfile.py
index 689aee0975312c80bb32cc8ee3ae403ac10ce277..1d3fbf2d3b7914aa886b0434b09d3d6019741d8f 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # fragments of source file\r
 #\r
-#  Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 # Import Modules\r
 #\r
 \r
+from __future__ import absolute_import\r
 import re\r
-import os\r
-from ParserWarning import Warning\r
+import Common.LongFilePathOs as os\r
+from .ParserWarning import Warning\r
+from Common.LongFilePathSupport import OpenLongFilePath as open\r
 \r
 CommentList = []\r
 PPDirectiveList = []\r
@@ -35,7 +37,7 @@ FunctionCallingList = []
 # May raise Exception when opening file.\r
 #\r
 class FileProfile :\r
-    \r
+\r
     ## The constructor\r
     #\r
     #   @param  self        The object pointer\r
@@ -53,5 +55,3 @@ class FileProfile :
 \r
         except IOError:\r
             raise Warning("Error when opening file %s" % FileName)\r
-        \r
-        
\ No newline at end of file