Skip to content

Commit 1e0051e

Browse files
linjaso1mergify[bot]
authored andcommitted
BaseTools: Fix Debug Macro Checking to Include Scanning Files
- In the commit 42a1418 there was a misuse of "is_dir" method. - Treating it as an object rather than function call, which caused if-condition to always as "false". - No files would be added to scanning list due to incorrect usage. - This patch corrects the issue by properly using "is_dir()". Signed-off-by: Jason1 Lin <[email protected]>
1 parent 25ccb6e commit 1e0051e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _show_file_discovered_message(file_count: int,
429429

430430
files = []
431431
for file in root_directory.rglob('*'):
432-
if file.suffix in extensions and not file.is_dir:
432+
if file.suffix in extensions and not file.is_dir():
433433
files.append(Path(file))
434434

435435
# Give an indicator progress is being made

0 commit comments

Comments
 (0)