From 6ead92430ea281abb00ba8ac53cdca5728743f06 Mon Sep 17 00:00:00 2001 From: tpoole Date: Fri, 18 Aug 2017 12:36:00 +0100 Subject: [PATCH] Doxygen: Don't create groups for "native" directories --- doxygen/process_source_files.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doxygen/process_source_files.py b/doxygen/process_source_files.py index ebd6a77ebc..fb40b53876 100644 --- a/doxygen/process_source_files.py +++ b/doxygen/process_source_files.py @@ -140,8 +140,15 @@ if __name__ == "__main__": # Create a list of the directories in the module that we can use as # subgroups and create the Doxygen group hierarchy string. dir_contents = os.listdir(module_path) - subdirs = [x for x in dir_contents - if os.path.isdir(os.path.join(module_path, x))] + # Ignore "native" folders as these are excluded by doxygen. + try: + dir_contents.remove("native") + except ValueError: + pass + subdirs = [] + for item in dir_contents: + if (os.path.isdir(os.path.join(module_path, item))): + subdirs.append(item) module_groups = {} for subdir in subdirs: subgroup_name = "{n}-{s}".format(n=module_name, s=subdir)