From d95226e455d3aa2bf158724b835e488467a63327 Mon Sep 17 00:00:00 2001 From: Soim Kim Date: Thu, 16 Jul 2026 08:20:01 +0900 Subject: [PATCH] fix: use POSIX path separators in binary report paths on Windows Align source_name_or_path with fosslight_source by reusing the already normalized relative path so SRC/BIN sheet paths stay comparable. --- src/fosslight_binary/binary_analysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fosslight_binary/binary_analysis.py b/src/fosslight_binary/binary_analysis.py index 3f9d89b..7060e1e 100755 --- a/src/fosslight_binary/binary_analysis.py +++ b/src/fosslight_binary/binary_analysis.py @@ -161,7 +161,8 @@ def get_file_list(path_to_find, excluded_files): bin_item = BinaryItem(bin_with_path) bin_item.binary_name_without_path = file - bin_item.source_name_or_path = bin_with_path.replace(_root_path, '', 1) + # Keep POSIX-style separators in reports (same as fosslight_source on Windows). + bin_item.source_name_or_path = rel_path_file bin_list.append(bin_item) file_cnt += 1