diff options
Diffstat (limited to 'BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py')
-rw-r--r-- | BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py index ffabcdf..8b310e0 100644 --- a/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py +++ b/BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py @@ -429,7 +429,7 @@ def check_macros_in_directory(directory: PurePath, files = []
for file in root_directory.rglob('*'):
- if file.suffix in extensions:
+ if file.suffix in extensions and not file.is_dir():
files.append(Path(file))
# Give an indicator progress is being made
@@ -577,6 +577,9 @@ def _show_progress(step: int, total: int, suffix: str = '') -> None: """
global _progress_start_time
+ if total == 0:
+ return
+
if step == 0:
_progress_start_time = timeit.default_timer()
|