Skip to content

Commit

Permalink
vars to make code more debuggable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay-Ferguson committed Jan 28, 2025
1 parent e3d4560 commit 7dd1860
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions common/python/agent/project_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ def scan_directory(self, scan_dir: str):
self.folder_names.append(short_dir)

for filename in filenames:
if (Utils.has_included_file_extension(self.ext_set, filename) and
Utils.allow_folder(self.folders_to_include, self.folders_to_exclude, short_dir)):
# print(f"visit file {filename} in {dirpath}")
includeExt = Utils.has_included_file_extension(self.ext_set, filename)
includeFolder = Utils.allow_folder(self.folders_to_include, self.folders_to_exclude, short_dir)
# print(f"file: {filename} -> includeExt: {includeExt}, includeFolder: {includeFolder}")
if (includeExt and includeFolder):
# print(f"include file {filename} in {dirpath}")
# build the full path
path: str = os.path.join(dirpath, filename)
# Call the visitor function for each file
self.visit_file(path)
#else:
# else:
# print(f"Skipping file {filename} in {dirpath}")

0 comments on commit 7dd1860

Please sign in to comment.