Skip to content

Commit

Permalink
Fix to exclude path
Browse files Browse the repository at this point in the history
  • Loading branch information
bjk7119 committed Nov 21, 2024
1 parent da28cfd commit 26169c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fosslight_binary/binary_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ def find_binaries(path_to_find_bin, output_dir, formats, dburl="", simple_mode=F
writing_msg = ""
results = []
bin_list = []
base_dir_name = os.path.basename(path_to_find_bin)
scan_item = ScannerItem(PKG_NAME, "")
abs_path_to_exclude = [os.path.abspath(os.path.join(base_dir_name, path)) for path in path_to_exclude if path.strip() != ""]
abs_path_to_exclude = [os.path.abspath(path) for path in path_to_exclude if path.strip() != ""]

if not os.path.isdir(path_to_find_bin):
error_occured(error_msg=f"(-p option) Can't find the directory: {path_to_find_bin}",
Expand Down

0 comments on commit 26169c3

Please sign in to comment.