Skip to content

Commit

Permalink
Update merge_docs.py (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Aug 9, 2024
1 parent 0fcaaf8 commit 5b9941d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion script/merge_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,16 @@ def copy_subfolder(source_dir, source_subfolder, dest_dir, dest_subfolder):
if os.path.isdir(source_item_path):

existing_dest_item = item

for dest_item in os.listdir(dest_path):
if dest_item.endswith(item):

compare_dest_item = dest_item
underscore_index = compare_dest_item.find('_')

if underscore_index != -1:
compare_dest_item = compare_dest_item[underscore_index + 1:]

if compare_dest_item == item:
existing_dest_item = dest_item
break

Expand Down

0 comments on commit 5b9941d

Please sign in to comment.