Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/fosslight_util/write_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def create_worksheet(workbook, sheet_name, header_row):
return worksheet


def merge_excels(find_excel_dir, final_out):
def merge_excels(find_excel_dir, final_out, merge_files=''):
success = True
msg = ""
FIND_EXTENSION = '.xlsx'
Expand All @@ -217,6 +217,9 @@ def merge_excels(find_excel_dir, final_out):
writer = pd.ExcelWriter(final_out)

for file in files:
if merge_files:
if file not in merge_files:
continue
if file.endswith(FIND_EXTENSION):
f_short_name = os.path.splitext(
file)[0].replace(_OUTPUT_FILE_PREFIX, "")
Expand Down