Skip to content

Commit 9b0312d

Browse files
committed
Import exclude path fct. from FL util
1 parent 18e1e06 commit 9b0312d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ py-tlsh
88
pytz
99
XlsxWriter
1010
PyYAML
11-
fosslight_util>=2.1.6
11+
fosslight_util>=2.1.9
1212
dependency-check

src/fosslight_binary/binary_analysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def find_binaries(path_to_find_bin, output_dir, formats, dburl="", simple_mode=F
206206
results = []
207207
bin_list = []
208208
scan_item = ScannerItem(PKG_NAME, "")
209-
abs_path_to_exclude = [os.path.abspath(path) for path in path_to_exclude if path.strip() != ""]
209+
exclude_path = excluding_files(path_to_exclude, path_to_find_bin)
210+
abs_path_to_exclude = [os.path.abspath(path) for path in exclude_path]
210211

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

0 commit comments

Comments
 (0)