From 51da91ec993caa80723fbbe907bd881cc6976239 Mon Sep 17 00:00:00 2001 From: Foe Date: Mon, 11 Nov 2024 23:20:53 +0100 Subject: [PATCH] Exclude CustomMethods from documentation parser --- docs/ElunaDoc/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ElunaDoc/__main__.py b/docs/ElunaDoc/__main__.py index 7b7e3ccd1a..5ee8ecd5a8 100644 --- a/docs/ElunaDoc/__main__.py +++ b/docs/ElunaDoc/__main__.py @@ -19,8 +19,8 @@ def find_class_files(search_path): # Get the current working dir and switch to the search path. old_dir = os.getcwd() os.chdir(search_path) - # Search for all files ending in "Methods.h". - method_file_names = glob.glob('*Methods.h') + # Search for all files ending in "Methods.h", and exclude CustomMethods.h + method_file_names = [file_name for file_name in glob.glob('*Methods.h') if file_name != 'CustomMethods.h'] # Open each file. method_files = [open(file_name, 'r') for file_name in method_file_names] # Go back to where we were before.