Skip to content

Commit 51da91e

Browse files
authored
Exclude CustomMethods from documentation parser
1 parent 39b4231 commit 51da91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ElunaDoc/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def find_class_files(search_path):
1919
# Get the current working dir and switch to the search path.
2020
old_dir = os.getcwd()
2121
os.chdir(search_path)
22-
# Search for all files ending in "Methods.h".
23-
method_file_names = glob.glob('*Methods.h')
22+
# Search for all files ending in "Methods.h", and exclude CustomMethods.h
23+
method_file_names = [file_name for file_name in glob.glob('*Methods.h') if file_name != 'CustomMethods.h']
2424
# Open each file.
2525
method_files = [open(file_name, 'r') for file_name in method_file_names]
2626
# Go back to where we were before.

0 commit comments

Comments
 (0)