diff options
Diffstat (limited to 'BaseTools/Scripts/FormatDosFiles.py')
-rw-r--r-- | BaseTools/Scripts/FormatDosFiles.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Scripts/FormatDosFiles.py b/BaseTools/Scripts/FormatDosFiles.py index 3150bef3c2..e119334ded 100644 --- a/BaseTools/Scripts/FormatDosFiles.py +++ b/BaseTools/Scripts/FormatDosFiles.py @@ -53,6 +53,7 @@ def FormatFilesInDir(DirPath, ExtList, Args): FileNames[:] = [f for f in FileNames if f not in Args.Exclude]
Continue = False
for Path in Args.Exclude:
+ Path = Path.strip('\\').strip('/')
if not os.path.isdir(Path) and not os.path.isfile(Path):
Path = os.path.join(ExcludeDir, Path)
if os.path.isdir(Path) and Path.endswith(DirPath):
|