diff --git a/tools/python/m2ctx.py b/tools/python/m2ctx.py index c6634267..b5caf838 100644 --- a/tools/python/m2ctx.py +++ b/tools/python/m2ctx.py @@ -452,7 +452,7 @@ def write_output(data): # Uses the `find` program to return the filenames in the specified folders. def find_files(): - find_command = ["find"] + search_folders + find_command = ["find"] + search_folders + ["-type", "f", "-name", "*.[ch]"] try: return subprocess.check_output(find_command, cwd=root_dir, encoding="utf-8") except subprocess.CalledProcessError: