We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51ab692 + 2984afb commit 5045e96Copy full SHA for 5045e96
bin/find_cmake_project_names.py
@@ -56,8 +56,13 @@ def _find_project_name_from_cmakelists(lines):
56
print(f"Error: The path '{root_path}' is not a directory.")
57
sys.exit(1)
58
59
+IGNORED_DIRECTORY_PREFIXES = ('.', '__pycache__')
60
+
61
project_names = []
62
for dirpath, dirnames, filenames in os.walk(root_path):
63
+ dirnames[:] = [
64
+ d for d in dirnames if not d.startswith(IGNORED_DIRECTORY_PREFIXES)
65
+ ]
66
if 'CMakeLists.txt' in filenames:
67
cmakelists_path = os.path.join(dirpath, 'CMakeLists.txt')
68
with open(cmakelists_path, 'r') as file:
0 commit comments